Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/mysql2_downcase_adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, default, sql_type = nil, null = true) ⇒ Column

Это выполняется при выборке списка аттрибутов на уровне класса



42
43
44
# File 'lib/active_record/connection_adapters/mysql2_downcase_adapter.rb', line 42

def initialize(name, default, sql_type = nil, null = true)
  old_initialize name.downcase, default, sql_type, null
end

Instance Method Details

#old_initializeObject



38
# File 'lib/active_record/connection_adapters/mysql2_downcase_adapter.rb', line 38

alias_method :old_initialize, :initialize