diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:02 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:02 +0200 |
commit | 18a2513729ab90b04b1c86963e7d5b9213270c81 (patch) | |
tree | 6e9a7bca134f5c98e291dbc694464d6a57a27f6a /activemodel/lib/active_model/dirty.rb | |
parent | 9617db2078e8a85c8944392c21dd748f932bbd80 (diff) | |
download | rails-18a2513729ab90b04b1c86963e7d5b9213270c81.tar.gz rails-18a2513729ab90b04b1c86963e7d5b9213270c81.tar.bz2 rails-18a2513729ab90b04b1c86963e7d5b9213270c81.zip |
applies new string literal convention in activemodel/lib
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
Diffstat (limited to 'activemodel/lib/active_model/dirty.rb')
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index 90047c3c12..f87973301b 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -1,5 +1,5 @@ -require 'active_support/hash_with_indifferent_access' -require 'active_support/core_ext/object/duplicable' +require "active_support/hash_with_indifferent_access" +require "active_support/core_ext/object/duplicable" module ActiveModel # == Active \Model \Dirty @@ -123,9 +123,9 @@ module ActiveModel private_constant :OPTION_NOT_GIVEN included do - attribute_method_suffix '_changed?', '_change', '_will_change!', '_was' - attribute_method_suffix '_previously_changed?', '_previous_change' - attribute_method_affix prefix: 'restore_', suffix: '!' + attribute_method_suffix "_changed?", "_change", "_will_change!", "_was" + attribute_method_suffix "_previously_changed?", "_previous_change" + attribute_method_affix prefix: "restore_", suffix: "!" end # Returns +true+ if any of the attributes have unsaved changes, +false+ otherwise. |