Skip to content

Commit

Permalink
we should not use instance_name when loading parents in shallowed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Lihachev authored and josevalim committed Dec 20, 2010
1 parent d8d8e04 commit 0b64283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inherited_resources/shallow_helpers.rb
Expand Up @@ -75,7 +75,7 @@ def symbols_for_association_chain #:nodoc:

def load_parents(instance, parent_symbols)
parent_symbols.reverse.each do |parent|
instance = instance.send(resources_configuration[parent][:instance_name])
instance = instance.send(parent)
params[resources_configuration[parent][:param]] = instance.id
end
end
Expand Down

0 comments on commit 0b64283

Please sign in to comment.