From fd7b030b6f47bc32e3741bd564811a28883672fb Mon Sep 17 00:00:00 2001 From: Akanksha Date: Wed, 14 Jul 2021 10:13:15 -0400 Subject: [PATCH] Update service.rb (#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 --- activestorage/lib/active_storage/service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activestorage/lib/active_storage/service.rb b/activestorage/lib/active_storage/service.rb index 17bf94f6e5792..15eadd584a5b4 100644 --- a/activestorage/lib/active_storage/service.rb +++ b/activestorage/lib/active_storage/service.rb @@ -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