mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-11-04 01:15:36 -05:00 
			
		
		
		
	Fix TimeEntry scope
This commit is contained in:
		
							parent
							
								
									4224f0de40
								
							
						
					
					
						commit
						57d72c04a7
					
				@ -1,7 +1,7 @@
 | 
			
		||||
class TimeEntry < ActsAsLoggable::Log
 | 
			
		||||
  default_scope where( loggable_type: "User",
 | 
			
		||||
                       logger_type: "User",
 | 
			
		||||
                       log_action_type: "ActsAsLoggable::UserAction")
 | 
			
		||||
                       log_action_type: "ActsAsLoggable::UserAction").where("log_action_id != 4").order("start_date DESC")
 | 
			
		||||
 | 
			
		||||
  def copy_to_bike_history(bike_id)
 | 
			
		||||
    self.assign_attributes({
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user