Sha256: c3055c7be6fe19e75dca40da1c5107c322bf7e1e0ea66f175b1b85c2535328c2

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

require 'globalid'

module ActiveEncode
  module GlobalID
    extend ActiveSupport::Concern
    include ::GlobalID::Identification

    def ==(other)
      other.is_a?(ActiveEncode::Base) && to_global_id == other.to_global_id
    end

    def to_global_id(options = {})
      super(app: 'ActiveEncode')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_encode-0.5.0 lib/active_encode/global_id.rb
active_encode-0.4.1 lib/active_encode/global_id.rb
active_encode-0.4 lib/active_encode/global_id.rb
active_encode-0.2 lib/active_encode/global_id.rb