Sha256: cb57a332b0735dfac4f5196117fb607c11f5f3bff3e8a071879bfa330bf4eb78

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

module ActiveMocker

  module UnknownModule

    def include(_module)
      begin
        super _module
      rescue => e
        Logger.debug e
        Logger.debug "ActiveMocker :: Can't include module #{_module} from class #{self.name}.\n #{caller}"

      end
    end

    def extend(_module)
      begin
        super _module
      rescue
        Logger.debug "ActiveMocker :: Can't extend module #{_module} from class #{self.name}..\n #{caller}"
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_mocker-1.3.2 lib/active_mocker/active_record/unknown_module.rb
active_mocker-1.3.1 lib/active_mocker/active_record/unknown_module.rb
active_mocker-1.3 lib/active_mocker/active_record/unknown_module.rb
active_mocker-1.2.4 lib/active_mocker/active_record/unknown_module.rb
active_mocker-1.2.3 lib/active_mocker/active_record/unknown_module.rb