Browse files

Double negation of an already boolean value produces the same result

  • Loading branch information...
1 parent 75dfd95 commit 88a559d4148789474c6dbd216725c69fa18200a9 @spastorino spastorino committed Nov 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/persistence.rb
View
2 activerecord/lib/active_record/persistence.rb
@@ -15,7 +15,7 @@ def destroyed?
# Returns if the record is persisted, i.e. it's not a new record and it was
# not destroyed.
def persisted?
- !!@persisted && !destroyed?
+ @persisted && !destroyed?
end
# Saves the model.

0 comments on commit 88a559d

Please sign in to comment.