mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Give better names to columns, add last name col
This commit is contained in:
parent
bc1eeea16e
commit
81217f1ea8
@ -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…
x
Reference in New Issue
Block a user