Use collection instead of end_of_association_chain in the inherited_resources integration, as per suggested by aq1018

This commit is contained in:
Trond Arve Nordheim
2011-03-08 10:45:34 +01:00
parent 79995e4309
commit e3eab13b86
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ module CanCan
end
def resource_base
@controller.send :end_of_association_chain
@controller.send :collection
end
end
end