Skip to content
Browse files

Modifying to see if I can get the collection to load even when a bloc…

…k is given
  • Loading branch information...
1 parent 54ed52d commit a2f20c47588d87ff436c2aa36f385a0ce221f3b9 @hunterae committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/cancan/controller_resource.rb
View
5 lib/cancan/controller_resource.rb
@@ -52,8 +52,9 @@ def load_resource_instance
end
def load_collection?
- resource_base.respond_to?(:accessible_by) &&
- !current_ability.has_block?(authorization_action, resource_class)
+ resource_base.respond_to?(:accessible_by)
+ # &&
+ # !current_ability.has_block?(authorization_action, resource_class)
end
def load_collection

0 comments on commit a2f20c4

Please sign in to comment.
Something went wrong with that request. Please try again.