Permalink
Browse files

Double negation of an already boolean value produces the same result

  • Loading branch information...
1 parent b0f6349 commit bf875b273d4efefbf54d87bb5c4a8cf82e4437de @spastorino spastorino committed Nov 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
# :call-seq:

0 comments on commit bf875b2

Please sign in to comment.