Module: TaggableEventTags

Includes:
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



42
43
44
45
46
# File 'lib/taggable_event_tags.rb', line 42

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

Instance Method Details

#event_finder_with_tags(tag) ⇒ Object



36
37
38
39
40
# File 'lib/taggable_event_tags.rb', line 36

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