|
@ -2,9 +2,15 @@ class UserRoleJoins < Netzke::Basepack::Grid |
|
|
def configure(c) |
|
|
def configure(c) |
|
|
super |
|
|
super |
|
|
c.model = "UserRoleJoin" |
|
|
c.model = "UserRoleJoin" |
|
|
|
|
|
c.header = false |
|
|
c.title = "User Roles" |
|
|
c.title = "User Roles" |
|
|
c.columns = [ :user__first_name, :role__role, :created_at, :updated_at, :ends ] |
|
|
c.columns = [ |
|
|
#c.columns = [ :user__first_name] |
|
|
{ :name => :user__first_name, :text => "First"}, |
|
|
|
|
|
{ :name => :user__last_name, :text => "Last"}, |
|
|
|
|
|
{ :name => :role__role, :text => "Role"}, |
|
|
|
|
|
:created_at, |
|
|
|
|
|
:updated_at, |
|
|
|
|
|
:ends ] |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
#override with nil to remove actions |
|
|
#override with nil to remove actions |
|
|