Module: ActsAsTaggableOn::Taggable::Ownership::ClassMethods
- Defined in:
- lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_taggable_on(*args) ⇒ Object
15 16 17 18 |
# File 'lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb', line 15 def acts_as_taggable_on(*args) initialize_acts_as_taggable_on_ownership super(*args) end |
#initialize_acts_as_taggable_on_ownership ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb', line 20 def initialize_acts_as_taggable_on_ownership tag_types.map(&:to_s).each do |tag_type| class_eval %( def #{tag_type}_from(owner) owner_tag_list_on(owner, '#{tag_type}') end ) end end |