diff --git a/lib/cancan/inherited_resource.rb b/lib/cancan/inherited_resource.rb index cee940f..81bca5b 100644 --- a/lib/cancan/inherited_resource.rb +++ b/lib/cancan/inherited_resource.rb @@ -3,7 +3,8 @@ module CanCan class InheritedResource < ControllerResource # :nodoc: def load_resource_instance if parent? - @controller.send :parent + @controller.send :association_chain + @controller.instance_variable_get("@#{instance_name}") elsif new_actions.include? @params[:action].to_sym @controller.send :build_resource else