lib/bj/util.rb in ThiagoLelis-backgroundjob-1.0.3 vs lib/bj/util.rb in ThiagoLelis-backgroundjob-1.0.4
- old
+ new
@@ -103,9 +103,13 @@
m = e.message rescue ""
c = e.class rescue Exception
b = e.backtrace.join("\n") rescue ""
"#{ m }(#{ c })\n#{ b }"
end
+
+ def now
+ Bj.config["utc"] ? Time.now.utc : Time.now
+ end
end
send :extend, ModuleMethods
end
end