Browse files

Add module_eval missing file_name and line_number args [#4712 state:r…

…esolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 100d228 commit a39f2657b1ae8d61c6018766f8d250b1401beace @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
View
4 activerecord/lib/active_record/autosave_association.rb
@@ -147,12 +147,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 a39f265

Please sign in to comment.