method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: UnknownPrimaryKey
new(model = nil, description = nil) 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/errors.rb, line 448
    def initialize(model = nil, description = nil)
      if model
        message = "Unknown primary key for table #{model.table_name} in model #{model}."
        message += "\n#{description}" if description
        @model = model
        super(message)
      else
        super("Unknown primary key.")
      end
    end
Register or log in to add new notes.