From 4c965c3581e94621f8d4a50271736afa1d396fac Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Wed, 18 Jan 2012 14:04:04 -0800 Subject: [PATCH] ui tweaks, fix edit --- app/controllers/permissions_controller.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/controllers/permissions_controller.rb b/app/controllers/permissions_controller.rb index 75d2751..2ee3a0a 100644 --- a/app/controllers/permissions_controller.rb +++ b/app/controllers/permissions_controller.rb @@ -1,12 +1,21 @@ class PermissionsController < ApplicationController active_scaffold :permission do |conf| - conf.actions.exclude :show + conf.actions.exclude :show, :search conf.columns = [:domain, :user, :user_email] conf.list.columns = [:domain, :user, :user_email] conf.create.columns = [:domain, :user_email] conf.update.columns = [:domain, :user_email] conf.columns[:user_email].form_ui = :virtual conf.columns[:user_email].description = 'user\'s email address, to share with. Ex. jhon.doe@domain.com' + conf.create.link.label = 'Share Domain' + # conf.columns[:user_email].search_sql = 'user.email' + # conf.columns[:user].search_sql = 'CONCAT(first_name, ' ', last_name)' end before_filter :ensure_nested_under_domain + + protected + + def beginning_of_chain + super.readonly(false) + end end \ No newline at end of file