mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Correct log criteria for Check Ins view
This commit is contained in:
		
							parent
							
								
									adeca0e08a
								
							
						
					
					
						commit
						b25a4520f9
					
				| @ -4,7 +4,9 @@ class CheckIns < Netzke::Basepack::Grid | ||||
|     super | ||||
|     c.header = false | ||||
|     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); | ||||
|                      } | ||||
|     c.columns = [ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user