From 57d72c04a7eb35e064f80f295357c08f6cecb7df Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 3 May 2014 19:28:56 -0400 Subject: [PATCH] Fix TimeEntry scope --- app/models/time_entry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index af86b09..aafea6a 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -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({