From 81217f1ea80d46e0dec9c070894d9548a496e8cf Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Thu, 16 May 2013 22:41:31 -0400 Subject: [PATCH] Give better names to columns, add last name col --- app/components/user_role_joins.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/components/user_role_joins.rb b/app/components/user_role_joins.rb index 40442a1..ba61e66 100644 --- a/app/components/user_role_joins.rb +++ b/app/components/user_role_joins.rb @@ -2,9 +2,15 @@ class UserRoleJoins < Netzke::Basepack::Grid def configure(c) super c.model = "UserRoleJoin" + c.header = false c.title = "User Roles" - c.columns = [ :user__first_name, :role__role, :created_at, :updated_at, :ends ] - #c.columns = [ :user__first_name] + c.columns = [ + { :name => :user__first_name, :text => "First"}, + { :name => :user__last_name, :text => "Last"}, + { :name => :role__role, :text => "Role"}, + :created_at, + :updated_at, + :ends ] end #override with nil to remove actions