Module: Acts::Favable::ClassMethods
- Defined in:
- lib/favable_methods.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_favable(options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/favable_methods.rb', line 11 def acts_as_favable(={}) has_many :favorites, {:as => :favable, :dependent => :destroy}.merge() include Acts::Favable::InstanceMethods extend Acts::Favable::SingletonMethods end |