aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorMohit Natoo <mohitnatoo@gmail.com>2016-04-21 00:04:05 +0530
committerMohit Natoo <mohitnatoo@gmail.com>2016-04-21 00:04:05 +0530
commit51d6a59329264bcae979a71a6ef37362bc347687 (patch)
tree6f66b334ceffea88f726b2c72d689154b3aaf0e5 /activemodel/lib/active_model
parent406a2380b88714387e015efcc0696bd2b20f49f1 (diff)
downloadrails-51d6a59329264bcae979a71a6ef37362bc347687.tar.gz
rails-51d6a59329264bcae979a71a6ef37362bc347687.tar.bz2
rails-51d6a59329264bcae979a71a6ef37362bc347687.zip
- [ci skip] `regardless` is usually followed by `of` and not by `if .. or not`.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/conversion.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/conversion.rb b/activemodel/lib/active_model/conversion.rb
index 9de6ea65be..a932ada45c 100644
--- a/activemodel/lib/active_model/conversion.rb
+++ b/activemodel/lib/active_model/conversion.rb
@@ -40,8 +40,8 @@ module ActiveModel
self
end
- # Returns an Array of all key attributes if any is set, regardless if
- # the object is persisted or not. Returns +nil+ if there are no key attributes.
+ # Returns an Array of all key attributes if any of the attributes is set, whether or not
+ # the object is persisted. Returns +nil+ if there are no key attributes.
#
# class Person
# include ActiveModel::Conversion