diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-08 10:39:12 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-08 10:39:12 -0800 |
commit | 3cae753963f4c7b6c676a20c407a56bb8d98712a (patch) | |
tree | d57b3b5319dffbef35a5233c23635cc959236716 | |
parent | d80e4ee20e690dfc0f4ec31c41b873d607462872 (diff) | |
download | rails-3cae753963f4c7b6c676a20c407a56bb8d98712a.tar.gz rails-3cae753963f4c7b6c676a20c407a56bb8d98712a.tar.bz2 rails-3cae753963f4c7b6c676a20c407a56bb8d98712a.zip |
fixing eval'd line numbers.
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/read.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index 8942fab500..25c998e857 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -55,7 +55,7 @@ module ActiveRecord internal = internal_attribute_access_code(attr_name, cast_code) external = external_attribute_access_code(attr_name, cast_code) - generated_attribute_methods.module_eval <<-STR, __FILE__, __LINE__ + generated_attribute_methods.module_eval <<-STR, __FILE__, __LINE__ + 1 def __temp__ #{internal} end @@ -63,7 +63,7 @@ module ActiveRecord undef_method :__temp__ STR - generated_attribute_methods.singleton_class.module_eval <<-STR, __FILE__, __LINE__ + generated_attribute_methods.singleton_class.module_eval <<-STR, __FILE__, __LINE__ + 1 def __temp__(v, attributes, attributes_cache, attr_name) #{external} end |