Skip to content
Browse files

Clarify what persisted? returns.

  • Loading branch information...
1 parent e4a1868 commit 2d1cbd02b4600625dc5db6b70ab003127a8b5559 @ugisozols ugisozols committed Dec 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/persistence.rb
View
4 activerecord/lib/active_record/persistence.rb
@@ -59,8 +59,8 @@ def destroyed?
@destroyed
end
- # Returns if the record is persisted, i.e. it's not a new record and it was
- # not destroyed.
+ # Returns true if the record is persisted, i.e. it's not a new record and it was
+ # not destroyed, otherwise returns false.
def persisted?
!(new_record? || destroyed?)
end

0 comments on commit 2d1cbd0

Please sign in to comment.
Something went wrong with that request. Please try again.