Class: Ecm::Tags::Tagging
- Inherits:
-
ActsAsTaggableOn::Tagging
- Object
- ActsAsTaggableOn::Tagging
- Ecm::Tags::Tagging
- Defined in:
- app/models/ecm/tags/tagging.rb
Instance Method Summary collapse
Instance Method Details
#human ⇒ Object
3 4 5 |
# File 'app/models/ecm/tags/tagging.rb', line 3 def human "#{taggable} - #{tag}" end |
#taggable=(taggable) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/models/ecm/tags/tagging.rb', line 7 def taggable=(taggable) if taggable.is_a?(String) super(GlobalID::Locator.locate(taggable)) else super end end |
#tagger=(tagger) ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/models/ecm/tags/tagging.rb', line 15 def tagger=(tagger) if tagger.is_a?(String) super(GlobalID::Locator.locate(tagger)) else super end end |