base.rb revision 068c4812bb4a75942b62c2124ca1875525b3ac5c
24ddae1e991141fca77d3703fbce61f6f6b0b8e1Eugen Kuksa# Base-Controller for editing a permission list
24ddae1e991141fca77d3703fbce61f6f6b0b8e1Eugen Kuksa# Please subclass this controller for your implementation
24ddae1e991141fca77d3703fbce61f6f6b0b8e1Eugen Kuksaclass PrivilegeList::Base < InheritedResources::Base
24ddae1e991141fca77d3703fbce61f6f6b0b8e1Eugen Kuksa rescue_from Permission::PowerVaccuumError, :with => :power_error
render :partial => resource, :locals => {:permission_list => permission_list}
render :text => exception.message, :status => :unprocessable_entity