Sha256: c6a47c7e953562e4b4fa9fd47a0a2b9d74bc2782cf65ea5949dcff96bd54c201
Contents?: true
Size: 373 Bytes
Versions: 58
Compression:
Stored size: 373 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Plugins def plugins @plugins ||= [] end def plugin(mod) extend mod::ClassMethods if mod.const_defined?(:ClassMethods) include mod::InstanceMethods if mod.const_defined?(:InstanceMethods) mod.configure(self) if mod.respond_to?(:configure) plugins << mod end end end
Version data entries
58 entries across 58 versions & 5 rubygems