inherited(base) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/engine.rb, line 361 def inherited(base) unless base.abstract_railtie? base.called_from = begin # Remove the line number from backtraces making sure we don't leave anything behind call_stack = caller.map { |p| p.sub(/:\d+.*/, '') } File.dirname(call_stack.detect { |p| p !~ %[railties[\w.-]*/lib/rails|rack[\w.-]*/lib/rack] }) end end super end
Register or log in to add new notes.