Module: RocketTag::Taggable
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Classes: Manager
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
24
25
26
|
# File 'lib/rocket_tag/taggable.rb', line 24
def self.included(base)
base.extend ClassMethods
end
|
Instance Method Details
#destroy_tags_for_context(context) ⇒ Object
68
69
70
|
# File 'lib/rocket_tag/taggable.rb', line 68
def destroy_tags_for_context context
taggings_for_context(context).delete_all
end
|
#taggings_for_context(context) ⇒ Object
64
65
66
|
# File 'lib/rocket_tag/taggable.rb', line 64
def taggings_for_context context
taggings.where{taggings.context==context.to_s}
end
|