Flowdock
method

id_for_database

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods::PrimaryKey
id_for_database() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 83
      def id_for_database # :nodoc:
        if self.class.composite_primary_key?
          @primary_key.map { |col| @attributes[col].value_for_database }
        else
          @attributes[@primary_key].value_for_database
        end
      end
Register or log in to add new notes.