diff options
-rw-r--r-- | actionpack/lib/action_controller/dependencies.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/dependencies.rb b/actionpack/lib/action_controller/dependencies.rb index 6b43a3a57f..8bc013db66 100644 --- a/actionpack/lib/action_controller/dependencies.rb +++ b/actionpack/lib/action_controller/dependencies.rb @@ -78,7 +78,6 @@ module ActionController #:nodoc: inherited_without_model(child) return if child.controller_name == "application" # otherwise the ApplicationController in Rails will include itself begin - Object.const_get(child.controller_name.singularize.classify) child.model(child.controller_name.singularize) rescue NameError, LoadError # No neither singular or plural model available for this controller |