Skip to content

Commit

Permalink
Update service.rb (#42766)
Browse files Browse the repository at this point in the history
* Update service.rb

The documentation for using the Active Storage from outside of the Ruby on Rails application is not according to the implementation. According to the implementation, we are looking for the env name instead of the `service` name in the configuration which is a hash( same as loading a `storage.yml`)

* Update service.rb

* Update service.rb
  • Loading branch information
akankshasaxena committed Jul 14, 2021
1 parent 7f8eccc commit fd7b030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activestorage/lib/active_storage/service.rb
Expand Up @@ -35,8 +35,8 @@ module ActiveStorage
# can configure the service to use like this:
#
# ActiveStorage::Blob.service = ActiveStorage::Service.configure(
# :Disk,
# root: Pathname("/foo/bar/storage")
# :local,
# { local: {service: "Disk", root: Pathname("/tmp/foo/storage") } }
# )
class Service
extend ActiveSupport::Autoload
Expand Down

0 comments on commit fd7b030

Please sign in to comment.