diff options
-rw-r--r-- | railties/lib/rails/application.rb | 5 | ||||
-rw-r--r-- | railties/lib/rails/engine.rb | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 5b26333486..a4cdc7306f 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -71,11 +71,6 @@ module Rails super || instance.respond_to?(*args) end - protected - - def method_missing(*args, &block) - instance.send(*args, &block) - end end delegate :middleware, :to => :config diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 12ca553a24..9a8dd8e8d4 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -123,6 +123,12 @@ module Rails RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? Pathname.new(root).expand_path : Pathname.new(root).realpath end + + protected + + def method_missing(*args, &block) + instance.send(*args, &block) + end end delegate :paths, :root, :to => :config |