ryanb/cancan — Issue #542: Active Model Mass-Assignment and load_resource with role pass
Author: jpascal
Created: 2012-01-06 15:52:21+00:00
State: open

How I can pass role to load_resource for do that

load_resource :assign => :admin

user = User.new
user.assign_attributes(params[:user], :as => :admin)