aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage
diff options
context:
space:
mode:
authorDino Maric <dino.onex@gmail.com>2017-08-10 20:02:29 +0200
committerRafael França <rafaelmfranca@gmail.com>2017-08-10 14:02:29 -0400
commita3f7407e7c0bdfafda4c574e12a68e9cbbef82c5 (patch)
tree33a99e253661e83a2f3ff30985fffc2e5d95204f /activestorage/lib/active_storage
parent3ffc77a9fb7902acacc600a897fda3107f2ff303 (diff)
downloadrails-a3f7407e7c0bdfafda4c574e12a68e9cbbef82c5.tar.gz
rails-a3f7407e7c0bdfafda4c574e12a68e9cbbef82c5.tar.bz2
rails-a3f7407e7c0bdfafda4c574e12a68e9cbbef82c5.zip
Isolate ActiveStorage namespaces (#30095)
* Isolate ActiveStorage namespaces * Rename migrations task [Rafael Mendonça França + Dino Maric]
Diffstat (limited to 'activestorage/lib/active_storage')
-rw-r--r--activestorage/lib/active_storage/engine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/engine.rb b/activestorage/lib/active_storage/engine.rb
index d5bc70fc0c..a5562b32d3 100644
--- a/activestorage/lib/active_storage/engine.rb
+++ b/activestorage/lib/active_storage/engine.rb
@@ -5,6 +5,8 @@ require "active_storage"
module ActiveStorage
class Engine < Rails::Engine # :nodoc:
+ isolate_namespace ActiveStorage
+
config.active_storage = ActiveSupport::OrderedOptions.new
config.eager_load_namespaces << ActiveStorage