app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.0.2 vs app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.0.3
- old
+ new
@@ -5,9 +5,12 @@
load_and_authorize_resource through: :exhibit, except: [:update_all]
def index
# every admin should at least see themseleves
raise CanCan::AccessDenied if @roles.empty?
+ add_breadcrumb @exhibit.title, @exhibit
+ add_breadcrumb t(:'spotlight.administration.sidebar.header'), exhibit_dashboard_path(@exhibit)
+ add_breadcrumb t(:'spotlight.administration.sidebar.users'), exhibit_roles_path(@exhibit)
@exhibit.roles.build
end
def update_all
attrs = params.require(:exhibit).permit(:roles_attributes => [:id, :user_key, :role, :_destroy])