class method
self.inherited
Ruby on Rails 3.1.12
Since v3.0.20Signature
self.inherited(base)
No documentation comment.
Parameters
-
basereq
Source
# File railties/lib/rails/application.rb, line 44
def inherited(base)
raise "You cannot have more than one Rails::Application" if Rails.application
super
Rails.application = base.instance
Rails.application.add_lib_to_load_path!
ActiveSupport.run_load_hooks(:before_configuration, base.instance)
end
Defined in railties/lib/rails/application.rb line 44
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application