diff options
author | Jashank Jeremy <jashank@rulingia.com> | 2015-09-01 19:11:26 +1000 |
---|---|---|
committer | Jashank Jeremy <jashank@rulingia.com> | 2015-09-01 19:11:26 +1000 |
commit | 09f64873cd76405fb4fb9b413d75d9827b814e85 (patch) | |
tree | 6ee21cc6eacfca1b6ce40e997f1daf2f0f42ad9d /activemodel | |
parent | 57393957e1650d395d482126120385d1d5953773 (diff) | |
download | rails-09f64873cd76405fb4fb9b413d75d9827b814e85.tar.gz rails-09f64873cd76405fb4fb9b413d75d9827b814e85.tar.bz2 rails-09f64873cd76405fb4fb9b413d75d9827b814e85.zip |
Fix syntax error introduced by #17351.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations/confirmation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/confirmation.rb b/activemodel/lib/active_model/validations/confirmation.rb index 3b2093aef9..120edda909 100644 --- a/activemodel/lib/active_model/validations/confirmation.rb +++ b/activemodel/lib/active_model/validations/confirmation.rb @@ -28,7 +28,7 @@ module ActiveModel end def confimation_value_equal?(record, attribute, value, confirmed) - if !options[:case_sensitive] && value.is_a? String + if !options[:case_sensitive] && value.is_a?(String) value.casecmp(confirmed) == 0 else value == confirmed |