Skip to Content Skip to Search

class ActiveRecord::RecordNotSaved

Raised by ActiveRecord::Base#save! and ActiveRecord::Base.create! methods when a record is invalid and cannot be saved.

Inherits From

Attributes

[R] record

Public class methods

Source code GitHub
# File activerecord/lib/active_record/errors.rb, line 137
def initialize(message = nil, record = nil)
  @record = record
  super(message)
end

Definition files