method
new
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::UnknownPrimaryKey
new(model, description = nil)public
No documentation available.
# File activerecord/lib/active_record/errors.rb, line 222
def initialize(model, description = nil)
message = "Unknown primary key for table #{model.table_name} in model #{model}."
message += "\n#{description}" if description
super(message)
@model = model
end