Sha256: 2fbb0a34f64ad865c047c53c5ffda6d20250c4954d8c49d9cd717e5dcf3f2ee1

Contents?: true

Size: 457 Bytes

Versions: 57

Compression:

Stored size: 457 Bytes

Contents

module Cmor::Tags
  class Tagging < ActsAsTaggableOn::Tagging
    self.table_name = 'taggings'

    def human
      "#{taggable} - #{tag}"
    end

    def taggable=(taggable)
      if taggable.is_a?(String)
        super(GlobalID::Locator.locate(taggable))
      else
        super
      end
    end

    def tagger=(tagger)
      if tagger.is_a?(String)
        super(GlobalID::Locator.locate(tagger))
      else
        super
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
cmor_tags-0.0.60.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.59.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.58.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.57.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.56.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.55.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.54.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.53.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.52.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.51.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.50.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.49.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.48.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.45.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.44.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.43.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.42.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.41.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.40.pre app/models/cmor/tags/tagging.rb
cmor_tags-0.0.39.pre app/models/cmor/tags/tagging.rb