class Arel::Attributes::Relation
Attributes
collection[RW]
for_write[RW]
Public Class Methods
new(relation, name, collection = false, for_write=false)
click to toggle source
# File lib/arel/nodes/relation.rb, line 7 def initialize(relation, name, collection = false, for_write=false) self[:relation] = relation self[:name] = name @collection = collection @for_write = for_write end
Public Instance Methods
able_to_type_cast?()
click to toggle source
# File lib/arel/nodes/relation.rb, line 14 def able_to_type_cast? relation.able_to_type_cast? end
eql?(other)
click to toggle source
# File lib/arel/nodes/relation.rb, line 22 def eql? other self.class == other.class && self.relation == other.relation && self.name == other.name && self.collection == other.collection end
table_name()
click to toggle source
# File lib/arel/nodes/relation.rb, line 18 def table_name nil end
type_cast_for_database(value)
click to toggle source
# File lib/arel/nodes/relation.rb, line 29 def type_cast_for_database(value) relation.type_cast_for_database(value) end