method

extract_record

rails latest stable - Class: ActiveRecord::Associations::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

extract_record(schema_abbreviations, table_name, row)
private

No documentation available.

# File activerecord/lib/active_record/associations.rb, line 1047
        def extract_record(schema_abbreviations, table_name, row)
          record = {}
          row.each do |column, value|
            prefix, column_name = schema_abbreviations[column]
            record[column_name] = value if prefix == table_name
          end
          return record
        end