diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 47b7610d4d..98dfcece8b 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -348,7 +348,7 @@ module ActiveRecord def evaluate_condition(condition, record) case condition when Symbol; record.send(condition) - when String; eval(condition, record.send(:binding)) + when String; eval(condition, record.instance_eval { binding }) else if condition_block?(condition) condition.call(record)