Browse Source

Give better names to columns, add last name col

eperez-timeinput
Jason Denney 12 years ago
parent
commit
81217f1ea8
  1. 10
      app/components/user_role_joins.rb

10
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

Loading…
Cancel
Save