Class: Switchman::ActiveRecord::QueryMethods::NonTransposingValue

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/switchman/active_record/query_methods.rb

Overview

Use this class to prevent a value from getting transposed across shards

Instance Method Summary collapse

Instance Method Details

#is_a?(other) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
14
# File 'lib/switchman/active_record/query_methods.rb', line 10

def is_a?(other)
  return true if other == NonTransposingValue

  __getobj__.is_a?(other)
end