Module: MailGrabber::Web::ApplicationHelper

Included in:
Application
Defined in:
lib/mail_grabber/web/application_helper.rb

Overview

Helper module for views

Instance Method Summary collapse

Instance Method Details

#root_pathObject

This method helps us that e.g. we can load style or JavaScript files when we are running this application standalone or in Ruby on Rails.



9
10
11
# File 'lib/mail_grabber/web/application_helper.rb', line 9

def root_path
  script_name.to_s
end