diff options
Diffstat (limited to 'activerecord/lib/active_record/validations.rb')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index c5c3a2b84a..75b752db6e 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -321,8 +321,8 @@ module ActiveRecord # whether or not to validate the record. See #validates_each. def evaluate_condition(condition, record) case condition - when Symbol: record.send(condition) - when String: eval(condition, record.send(:binding)) + when Symbol; record.send(condition) + when String; eval(condition, record.send(:binding)) else if condition_block?(condition) condition.call(record) |