Class: Arel::Attributes::Key

Inherits:
Attribute
  • Object
show all
Defined in:
lib/arel/attributes/key.rb

Instance Method Summary collapse

Instance Method Details

#able_to_type_cast?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/arel/attributes/key.rb', line 5

def able_to_type_cast?
  false
end

#table_nameObject



9
10
11
# File 'lib/arel/attributes/key.rb', line 9

def table_name
  nil
end

#type_cast_for_database(value) ⇒ Object



13
14
15
# File 'lib/arel/attributes/key.rb', line 13

def type_cast_for_database(value)
  relation.type_cast_for_database(value)
end