diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-04-20 15:36:01 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-04-20 15:36:01 -0300 |
commit | fa8920256bd40c7559c7105026f93dd912741d4d (patch) | |
tree | 6f530045ec7c6e18063a177fa7a4238dede2451e /activemodel/lib | |
parent | 3b38fb3d574a4af148682e92ba90bbdb377c6163 (diff) | |
parent | 51d6a59329264bcae979a71a6ef37362bc347687 (diff) | |
download | rails-fa8920256bd40c7559c7105026f93dd912741d4d.tar.gz rails-fa8920256bd40c7559c7105026f93dd912741d4d.tar.bz2 rails-fa8920256bd40c7559c7105026f93dd912741d4d.zip |
Merge pull request #24656 from mohitnatoo/regardless-if-or-not
Use of `whether or not` instead of `regardless if ... or not`
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/conversion.rb | 4 |
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 |