Module: MyTags::ActiveRecord::ClassMethods
- Defined in:
- lib/my_tags/active_record.rb
Instance Method Summary collapse
Instance Method Details
#has_many_tags ⇒ Object
23 24 25 26 |
# File 'lib/my_tags/active_record.rb', line 23 def has_many :taggings, :class_name => 'MyTags::Tagging', :as => :taggable, :dependent => :destroy has_many :tags, :class_name => 'MyTags::Tag', :through => :taggings end |