Module: Tagalong::Taggable::ClassMethods
- Defined in:
- lib/tagalong/taggable.rb
Instance Method Summary collapse
Instance Method Details
#tagalong_taggable ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/tagalong/taggable.rb', line 8 def tagalong_taggable class_eval do has_many :tagalong_taggings, :class_name => 'Tagalong::TagalongTagging', :as => :taggable has_many :tagalong_tags, :class_name => 'Tagalong::TagalongTag', :through => :tagalong_taggings include Tagalong::Taggable::InstanceMethods end end |