Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Double negation of an already boolean value produces the same result

  • Loading branch information...
commit bf875b273d4efefbf54d87bb5c4a8cf82e4437de 1 parent b0f6349
@spastorino spastorino authored
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
# :call-seq:
Please sign in to comment.
Something went wrong with that request. Please try again.