Sha256: fef89801b65bc575d7871b5fc2b1b929b8e37bcdfb3a28ec187ef075061b031b
Contents?: true
Size: 505 Bytes
Versions: 14
Compression:
Stored size: 505 Bytes
Contents
module ActiveMocker module ActiveRecord module UnknownModule def include(_module) try_and_log('include', _module, caller) end def extend(_module) try_and_log('extend', _module, caller) end private def try_and_log(method, name, _caller) begin super _module rescue => e Config.logger.debug "#{method} module #{name} from class #{self.name}.\n #{_caller}\n #{e}" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems