Method: ActiveRecord::Relation#==

Defined in:
lib/ocean-dynamo/active_record_stuff/relation.rb

#==(other) ⇒ Object

Compares two relations for equality.



538
539
540
541
542
543
544
545
# File 'lib/ocean-dynamo/active_record_stuff/relation.rb', line 538

def ==(other)
  case other
  when Relation
    other.to_sql == to_sql
  when Array
    to_a == other
  end
end