mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-04-04 05:33:22 -04:00
-Moved bikes to User model instead of profile -User can copy user log to a bike log with new actsasloggable -Added user stats -some css was messing up checkboxes, need to figure out which stylesheet was doing that
21 lines
335 B
Ruby
21 lines
335 B
Ruby
class Users < Netzke::Basepack::Grid
|
|
def configure(c)
|
|
super
|
|
c.model = "User"
|
|
|
|
c.columns = [
|
|
:first_name,
|
|
:last_name,
|
|
:nickname,
|
|
:email,
|
|
:user_role__role,
|
|
:bike__serial_number
|
|
]
|
|
end
|
|
|
|
#override with nil to remove actions
|
|
def default_bbar
|
|
[ :apply, :add_in_form ]
|
|
end
|
|
end
|