Sha256: 7774905a3311acc42e35d908d17342c81437054b32bc890a54ed8433236a24bd
Contents?: true
Size: 392 Bytes
Versions: 25
Compression:
Stored size: 392 Bytes
Contents
# encoding: UTF-8 module StorageRoom module Plugins include ActiveSupport::DescendantsTracker def plugins @plugins ||= [] end def plugin(mod) include mod direct_descendants.each {|model| model.send(:include, mod) } plugins << mod end def included(base = nil, &block) direct_descendants << base if base super end end end
Version data entries
25 entries across 25 versions & 1 rubygems