Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9 compat: workaround module_eval bug. Closes #10641 [Frederick…

… Cheung]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 07392bfe879e2582fe92bd09c5ecc8f3bdb9249f 1 parent 58cf6df
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/aggregations.rb
View
2  activerecord/lib/active_record/aggregations.rb
@@ -155,7 +155,7 @@ def reader_method(name, class_name, mapping, allow_nil)
if (instance_variable_get("@#{name}").nil? || force_reload) && (!allow_nil || mapping.any? {|pair| !read_attribute(pair.first).nil? })
instance_variable_set("@#{name}", class_name.constantize.new(*mapping.collect {|pair| read_attribute(pair.first)}))
end
- return instance_variable_get("@#{name}")
+ instance_variable_get("@#{name}")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.