adding initial aliases for index, show, new and edit

This commit is contained in:
Ryan Bates
2009-11-16 15:09:25 -08:00
parent d5f6e0570c
commit be1892cca8
2 changed files with 17 additions and 0 deletions

View File

@@ -2,6 +2,9 @@ module CanCan
module Ability
def self.included(base)
base.extend ClassMethods
base.alias_action :index, :show, :to => :read
base.alias_action :new, :to => :create
base.alias_action :edit, :to => :update
end
def can?(original_action, target)