diff options
author | Evgeniy Dolzhenko <dolzenko@gmail.com> | 2010-05-27 03:22:45 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-26 22:38:54 +0200 |
commit | a39f2657b1ae8d61c6018766f8d250b1401beace (patch) | |
tree | c615991f68cb19cabf2890e0adcb0e3f2870ef51 /activerecord/lib | |
parent | 100d2282e306f68d8ce0324128da1506eafc43a2 (diff) | |
download | rails-a39f2657b1ae8d61c6018766f8d250b1401beace.tar.gz rails-a39f2657b1ae8d61c6018766f8d250b1401beace.tar.bz2 rails-a39f2657b1ae8d61c6018766f8d250b1401beace.zip |
Add module_eval missing file_name and line_number args [#4712 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/autosave_association.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index c378e19864..7517896235 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -147,12 +147,12 @@ module ActiveRecord # add_autosave_association_callbacks(reflect_on_association(name)) # end ASSOCIATION_TYPES.each do |type| - module_eval %{ + module_eval <<-CODE, __FILE__, __LINE__ + 1 def #{type}(name, options = {}) super add_autosave_association_callbacks(reflect_on_association(name)) end - } + CODE end # Adds a validate and save callback for the association as specified by |