Append aliased actions (don't overwrite them) - closes #20
This commit is contained in:
@@ -156,7 +156,8 @@ module CanCan
|
||||
# This way one can use params[:action] in the controller to determine the permission.
|
||||
def alias_action(*args)
|
||||
target = args.pop[:to]
|
||||
aliased_actions[target] = args
|
||||
aliased_actions[target] ||= []
|
||||
aliased_actions[target] += args
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user