Module: Logs::ApplicationHelper
- Defined in:
- app/helpers/logs/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#lines(file) ⇒ Object
11 12 13 |
# File 'app/helpers/logs/application_helper.rb', line 11 def lines(file) file.each_line.count.to_s end |
#log_file ⇒ Object
3 4 5 |
# File 'app/helpers/logs/application_helper.rb', line 3 def log_file (params[:name] || Rails.env) + '.log' end |
#log_file_path(log_name) ⇒ Object
7 8 9 |
# File 'app/helpers/logs/application_helper.rb', line 7 def log_file_path(log_name) root_path + log_name end |