Module: MakeTaggable::Taggable::Ownership::ClassMethods
- Defined in:
- lib/make_taggable/taggable/ownership.rb
Instance Method Summary collapse
Instance Method Details
#initialize_make_taggable_ownership ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/make_taggable/taggable/ownership.rb', line 19 def initialize_make_taggable_ownership tag_types.map(&:to_s).each do |tag_type| class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{tag_type}_from(owner) owner_tag_list_on(owner, '#{tag_type}') end RUBY end end |
#make_taggable(*args) ⇒ Object
14 15 16 17 |
# File 'lib/make_taggable/taggable/ownership.rb', line 14 def make_taggable(*args) initialize_make_taggable_ownership super(*args) end |