Permalink
Browse files

Add module_eval missing file_name and line_number args

[#4712 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 0e9190c commit 56b35afbdd64a894e8efddda4651ef89ed7473b2 @dolzenko dolzenko committed with josevalim May 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/autosave_association.rb
@@ -146,12 +146,12 @@ module ClassMethods
# 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

0 comments on commit 56b35af

Please sign in to comment.