|
@ -4,7 +4,9 @@ class CheckIns < Netzke::Basepack::Grid |
|
|
super |
|
|
super |
|
|
c.header = false |
|
|
c.header = false |
|
|
c.model = "ActsAsLoggable::Log" |
|
|
c.model = "ActsAsLoggable::Log" |
|
|
c.scope = lambda { |rel| rel.where(:log_action_id => ::ActsAsLoggable::UserAction.find_by_action("CHECKIN")). |
|
|
c.scope = lambda { |rel| rel.where(:log_action_type => ::ActsAsLoggable::UserAction). |
|
|
|
|
|
where(:loggable_type => "User"). |
|
|
|
|
|
where(:log_action_id => ::ActsAsLoggable::UserAction.find_by_action("CHECKIN")). |
|
|
where("start_date >= ?", Time.zone.now.beginning_of_day); |
|
|
where("start_date >= ?", Time.zone.now.beginning_of_day); |
|
|
} |
|
|
} |
|
|
c.columns = [ |
|
|
c.columns = [ |
|
|