Permalink
Browse files

- fix missing old way to set resource instance variable

  • Loading branch information...
gramos committed Sep 29, 2010
1 parent 59dc21a commit 0b78260bf2dcf1e0ff707212921e3d33975a86e3
Showing with 0 additions and 1 deletion.
  1. +0 −1 activeresource/lib/active_resource/associations.rb
@@ -79,7 +79,6 @@ def belongs_to(resource, opts = {})
association_col = send h[:association_col]
return nil if association_col.nil?
set_resource_instance_variable(resource){ h[:klass].find(association_col) }
- instance_variable_set("@#{resource}", h[:klass].find(association_col))
end
end

0 comments on commit 0b78260

Please sign in to comment.