Module: ActiveMocker::ActiveRecord::UnknownClassMethod Private

Included in:
Base
Defined in:
lib/active_mocker/active_record/unknown_class_method.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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ 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.



7
8
9
10
# File 'lib/active_mocker/active_record/unknown_class_method.rb', line 7

def method_missing(meth, *args)
  Config.logger.warn "#{meth} called from class #{self.name.demodulize}" +
                   " is unknown and will not be available in mock.\n  #{caller.first}"
end