Module: Polytag::Concerns::TagOwner::AssociationExtensions
- Defined in:
- lib/polytag/concerns/tag_owner/association_extensions.rb,
lib/polytag/concerns/tag_owner/association_extensions/owned_tags.rb
Defined Under Namespace
Modules: OwnedTags
Instance Method Summary collapse
Instance Method Details
#default ⇒ Object
5 6 7 |
# File 'lib/polytag/concerns/tag_owner/association_extensions.rb', line 5 def default where(name: :default).first end |
#get(group) ⇒ Object
9 10 11 |
# File 'lib/polytag/concerns/tag_owner/association_extensions.rb', line 9 def get(group) where(name: "#{group}".strip).first end |