Class: Logs::Viewer

Inherits:
Object
  • Object
show all
Defined in:
app/services/logs/viewer.rb

Constant Summary collapse

LOG_PATH =
Rails.root + 'log/'

Class Method Summary collapse

Class Method Details

.call(file_name) ⇒ Object



5
6
7
# File 'app/services/logs/viewer.rb', line 5

def self.call(file_name)
  File.open(LOG_PATH + (file_name + '.log'))
end