mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
Move ToStdout to /app/lib folder and include it in app.rb
This commit is contained in:
parent
217f009fa3
commit
1d5c46e6a0
6 changed files with 13 additions and 16 deletions
6
app/lib/to_stdout.rb
Normal file
6
app/lib/to_stdout.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue