Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/active_record/support/dependencies.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#const_missing(class_id) ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/active_record/support/dependencies.rb', line 48 def const_missing(class_id) begin require_dependency(Inflector.underscore(Inflector.demodulize(class_id.to_s))) return Object.const_get(class_id) if Object.const_defined?(class_id) rescue LoadError pre_dependency_const_missing(class_id) end end |
#pre_dependency_const_missing ⇒ Object
46 |
# File 'lib/active_record/support/dependencies.rb', line 46 alias_method :pre_dependency_const_missing, :const_missing |