renaming ActiveRecordAdditions#can method to accessible_by since it flows better and makes more sense
This commit is contained in:
@@ -191,7 +191,7 @@ module CanCan
|
||||
# can :read, Article, :visible => true
|
||||
# conditions :read, Article # returns { :visible => true }
|
||||
#
|
||||
# Normally you will not call this method directly, but instead go through ActiveRecordAdditions#can method.
|
||||
# Normally you will not call this method directly, but instead go through ActiveRecordAdditions#accessible_by method.
|
||||
#
|
||||
# If the ability is not defined then false is returned so be sure to take that into consideration.
|
||||
# If the ability is defined using a block then this will raise an exception since a hash of conditions cannot be
|
||||
|
||||
Reference in New Issue
Block a user