Sha256: 80f54acb1253e29869755b7bac2d85d4cb80bb3fdb0758826bd694e8c5243603
Contents?: true
Size: 338 Bytes
Versions: 2
Compression:
Stored size: 338 Bytes
Contents
module ActiveRecord module Acts module Featureable def self.included(base) base.extend ClassMethods end module ClassMethods def acts_as_featureable has_many :features, :as => :featureable, :dependent => :destroy end end end end end ActiveRecord::Base.send(:include, ActiveRecord::Acts::Featureable)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_featureable-0.0.2 | lib/acts_as_featureable/featureable_methods.rb |
acts_as_featureable-0.0.1 | lib/acts_as_featureable/featureable_methods.rb |