blob: 8945cb0cc56e549a8866388307024dce46da62a0 (
plain) (
tree)
|
|
module ActiveRecord
class Relation
class FromClause # :nodoc:
attr_reader :value, :name
def initialize(value, name)
@value = value
@name = name
end
def binds
if value.is_a?(Relation)
value.bound_attributes
else
[]
end
end
def merge(other)
self
end
def empty?
value.nil?
end
def self.empty
@empty ||= new(nil, nil)
end
end
end
end
|