Module: Skyline::Taggable::ClassMethods

Defined in:
lib/skyline/taggable.rb

Instance Method Summary collapse

Instance Method Details

#available_tagsObject



79
80
81
# File 'lib/skyline/taggable.rb', line 79

def available_tags
  Skyline::Tag.find_all_by_taggable_type(self.to_s)
end

#taggable_scope(scope) ⇒ Object



83
84
85
# File 'lib/skyline/taggable.rb', line 83

def taggable_scope(scope)
  self.taggable_type = scope
end