Module: Taggable::EventTags

Includes:
EventCalendarTags, Radiant::Taggable
Defined in:
lib/taggable/event_tags.rb

Defined Under Namespace

Classes: TagError

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



73
74
75
76
77
# File 'lib/taggable/event_tags.rb', line 73

def self.included(base)
  base.class_eval {
    alias_method_chain :event_finder, :tags
  }
end

Instance Method Details

#event_finder_with_tags(tag) ⇒ Object



67
68
69
70
71
# File 'lib/taggable/event_tags.rb', line 67

def event_finder_with_tags(tag)
  ef = event_finder_without_tags(tag)
  ef = ef.from_all_tags(Tag.from_list(tag.attr['tags'])) unless tag.attr['tags'].blank?
  ef
end