Move ToStdout to /app/lib folder and include it in app.rb

This commit is contained in:
Alex Sherman 2021-01-06 15:33:02 +05:00
parent 217f009fa3
commit 1d5c46e6a0
6 changed files with 13 additions and 16 deletions

6
app/lib/to_stdout.rb Normal file
View file

@ -0,0 +1,6 @@
class ToStdout
def self.msg(message)
time = Time.zone.now.utc
STDOUT << "#{time} - #{message}\n" unless Rails.env.test?
end
end