aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-25 19:33:33 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-25 19:33:33 +0530
commit54e522a38827b7b78968237a762334f94c20f7d7 (patch)
tree73771abe79e954495753e2c875f6e063bac77482 /activerecord/lib/active_record/persistence.rb
parentebddca18bb16c4d9bda4db72b5154a23f459b7c8 (diff)
parent2d1cbd02b4600625dc5db6b70ab003127a8b5559 (diff)
downloadrails-54e522a38827b7b78968237a762334f94c20f7d7.tar.gz
rails-54e522a38827b7b78968237a762334f94c20f7d7.tar.bz2
rails-54e522a38827b7b78968237a762334f94c20f7d7.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index bf4f97b03b..09ee2ba61d 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -9,7 +9,7 @@ module ActiveRecord
# Creates an object (or multiple objects) and saves it to the database, if validations pass.
# The resulting object is returned whether the object was saved successfully to the database or not.
#
- # The +attributes+ parameter can be either be a Hash or an Array of Hashes. These Hashes describe the
+ # The +attributes+ parameter can be either a Hash or an Array of Hashes. These Hashes describe the
# attributes on the objects that are to be created.
#
# +create+ respects mass-assignment security and accepts either +:as+ or +:without_protection+ options
@@ -59,8 +59,8 @@ module ActiveRecord
@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