Module: ActiveEncode::GlobalID

Extended by:
ActiveSupport::Concern
Includes:
GlobalID::Identification
Included in:
Base
Defined in:
lib/active_encode/global_id.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



9
10
11
# File 'lib/active_encode/global_id.rb', line 9

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

#to_global_id(_options = {}) ⇒ Object



13
14
15
# File 'lib/active_encode/global_id.rb', line 13

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