Module: ActiveMocker::ActiveRecord::Base::ConstMissing Private
- Defined in:
- lib/active_mocker/active_record.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #const_missing(name) ⇒ Object private
Instance Method Details
#const_missing(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 44 45 46 |
# File 'lib/active_mocker/active_record.rb', line 41 def const_missing(name) Config.logger.debug "const_missing #{name} from class #{self.name}. Creating Class.\n #{caller.first}" m = Module.new m.extend ConstMissing self.const_set name, m end |