renaming ActiveRecordAdditions#can method to accessible_by since it flows better and makes more sense

This commit is contained in:
Ryan Bates
2010-04-15 23:54:45 -07:00
parent ef5900c5b1
commit 240c281061
5 changed files with 11 additions and 11 deletions

View File

@@ -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