Method: ActiveRecord::ModelSchema::ClassMethods#symbol_column_to_string

Defined in:
activerecord/lib/active_record/model_schema.rb

#symbol_column_to_string(name_symbol) ⇒ Object

:nodoc:



483
484
485
486
# File 'activerecord/lib/active_record/model_schema.rb', line 483

def symbol_column_to_string(name_symbol) # :nodoc:
  @symbol_column_to_string_name_hash ||= column_names.index_by(&:to_sym)
  @symbol_column_to_string_name_hash[name_symbol]
end