Sha256: 1fab5a8384e2af5cbca8bba01e753e99068b443f743d6a4322c34972c46cb5ff
Contents?: true
Size: 338 Bytes
Versions: 14
Compression:
Stored size: 338 Bytes
Contents
module MongoMapper module Plugins def plugins @plugins ||= [] end def plugin(mod) if mod.const_defined?(:ClassMethods) extend mod::ClassMethods end if mod.const_defined?(:InstanceMethods) include mod::InstanceMethods end plugins << mod end end end
Version data entries
14 entries across 14 versions & 2 rubygems