load the collection instance variable on index action - closes #137
This commit is contained in:
@@ -221,6 +221,10 @@ module CanCan
|
||||
attributes
|
||||
end
|
||||
|
||||
def has_block?(action, subject)
|
||||
relevant_can_definitions(action, subject).any?(&:only_block?)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def unauthorized_message_keys(action, subject)
|
||||
|
||||
Reference in New Issue
Block a user