Skip to content

Commit fd7b030

Browse files
Update service.rb (rails#42766)
* 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
1 parent 7f8eccc commit fd7b030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activestorage/lib/active_storage/service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ module ActiveStorage
3535
# can configure the service to use like this:
3636
#
3737
# ActiveStorage::Blob.service = ActiveStorage::Service.configure(
38-
# :Disk,
39-
# root: Pathname("/foo/bar/storage")
38+
# :local,
39+
# { local: {service: "Disk", root: Pathname("/tmp/foo/storage") } }
4040
# )
4141
class Service
4242
extend ActiveSupport::Autoload

0 commit comments

Comments
 (0)