module Ecm::Tags
  class Tagging < ActsAsTaggableOn::Tagging
    def human
      "#{taggable} - #{tag}"
    end
  end
end

module Ecm::Tags
  class Tagging < ActsAsTaggableOn::Tagging
    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

Add setter for tagger and taggable by gid in Ecm::Tags::Tagging.
Add setter for tagger and taggable by gid in Ecm::Tags::Tagging.
