instance method
persisted?
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
persisted?()
Returns if the record is persisted, i.e. it’s not a new record and it was not destroyed.
Source
# File activerecord/lib/active_record/persistence.rb, line 64
def persisted?
!(new_record? || destroyed?)
end
Defined in activerecord/lib/active_record/persistence.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Persistence