diff options
author | George Claghorn <george@basecamp.com> | 2018-01-16 20:32:02 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-01-16 20:32:02 -0500 |
commit | 6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87 (patch) | |
tree | e7d5383d4cf8d6cc17c508732f0c56afcbdcaca2 /activestorage/lib | |
parent | 4c0cb1c2c9269c74588da9f114f52ea3707ae8fb (diff) | |
download | rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.tar.gz rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.tar.bz2 rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.zip |
Provide a sensible default host
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/service/disk_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/service/disk_service.rb b/activestorage/lib/active_storage/service/disk_service.rb index 27769db584..d17eea9046 100644 --- a/activestorage/lib/active_storage/service/disk_service.rb +++ b/activestorage/lib/active_storage/service/disk_service.rb @@ -11,7 +11,7 @@ module ActiveStorage class Service::DiskService < Service attr_reader :root, :host - def initialize(root:, host:) + def initialize(root:, host: "http://localhost:3000") @root, @host = root, host end |