adding current_ability to helper methods - closes #361

This commit is contained in:
Ryan Bates
2011-05-17 13:21:11 -04:00
parent dde88c92b7
commit 4e4c5a9a7f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ module CanCan
def self.included(base)
base.extend ClassMethods
base.helper_method :can?, :cannot?
base.helper_method :can?, :cannot?, :current_ability
end
# Raises a CanCan::AccessDenied exception if the current_ability cannot