Class: WCC::Media::TagGroup
Class Method Summary
collapse
Instance Method Summary
collapse
[], all, attributes, defined_attributes, inherited, #initialize, reset
Class Method Details
.db ⇒ Object
16
17
18
|
# File 'lib/wcc/media/tag_group.rb', line 16
def self.db
TAG_GROUPS
end
|
Instance Method Details
#matches?(value) ⇒ Boolean
8
9
10
|
# File 'lib/wcc/media/tag_group.rb', line 8
def matches?(value)
[id, key, self].include?(value)
end
|
12
13
14
|
# File 'lib/wcc/media/tag_group.rb', line 12
def tags
Tag.where(tag_group_id: id)
end
|