aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-11-09 16:53:03 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-09 16:53:03 -0200
commit88a559d4148789474c6dbd216725c69fa18200a9 (patch)
tree30eb2c14daee84d78a352a87029d02fb68db9411 /activerecord/lib/active_record/persistence.rb
parent75dfd95618310a9522a73d8126b35351c8189042 (diff)
downloadrails-88a559d4148789474c6dbd216725c69fa18200a9.tar.gz
rails-88a559d4148789474c6dbd216725c69fa18200a9.tar.bz2
rails-88a559d4148789474c6dbd216725c69fa18200a9.zip
Double negation of an already boolean value produces the same result
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 390e09d826..00d49dd0f6 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -15,7 +15,7 @@ module ActiveRecord
# 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.