Sha256: bf0253e93d16cc5def38822a2225fdfa423e47f8b16f80410430116c1db3d621

Contents?: true

Size: 352 Bytes

Versions: 14

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true
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

14 entries across 14 versions & 1 rubygems

Version Path
active_encode-1.2.3 lib/active_encode/global_id.rb
active_encode-1.2.2 lib/active_encode/global_id.rb
active_encode-1.2.1 lib/active_encode/global_id.rb
active_encode-1.2.0 lib/active_encode/global_id.rb
active_encode-1.1.3 lib/active_encode/global_id.rb
active_encode-1.1.2 lib/active_encode/global_id.rb
active_encode-1.1.1 lib/active_encode/global_id.rb
active_encode-1.1.0 lib/active_encode/global_id.rb
active_encode-1.0.0 lib/active_encode/global_id.rb
active_encode-0.8.2 lib/active_encode/global_id.rb
active_encode-0.8.1 lib/active_encode/global_id.rb
active_encode-0.8.0 lib/active_encode/global_id.rb
active_encode-0.7.0 lib/active_encode/global_id.rb
active_encode-0.6.0 lib/active_encode/global_id.rb