class Octopus::RelationProxy

Attributes

ar_relation[RW]

Public Class Methods

new(shard, ar_relation) click to toggle source
# File lib/octopus/relation_proxy.rb, line 14
def initialize(shard, ar_relation)
  @current_shard = shard
  @ar_relation = ar_relation
end

Public Instance Methods

==(other) click to toggle source
# File lib/octopus/relation_proxy.rb, line 23
def ==(other)
  case other
  when ::Octopus::RelationProxy
    method_missing(:==, other.ar_relation)
  else
    method_missing(:==, other)
  end
end
Also aliased as: eql?
eql?(other)
Alias for: ==
method_missing(method, *args, &block) click to toggle source
# File lib/octopus/relation_proxy.rb, line 19
def method_missing(method, *args, &block)
  @ar_relation.public_send(method, *args, &block)
end