lib/sequel_rails/railties/log_subscriber.rb in sequel-rails-0.9.11 vs lib/sequel_rails/railties/log_subscriber.rb in sequel-rails-0.9.12
- old
+ new
@@ -16,15 +16,17 @@
def self.count
Thread.current['sequel_sql_count'] ||= 0
end
def self.reset_runtime
- previous, self.runtime = runtime, 0
+ previous = runtime
+ self.runtime = 0
previous
end
def self.reset_count
- previous, self.count = count, 0
+ previous = count
+ self.count = 0
previous
end
def sql(event)
self.class.runtime += event.duration