Module: MailGrabber::Web
- Defined in:
- lib/mail_grabber/web.rb,
lib/mail_grabber/web/application.rb,
lib/mail_grabber/web/application_helper.rb,
lib/mail_grabber/web/application_router.rb
Defined Under Namespace
Modules: ApplicationHelper, ApplicationRouter Classes: Application
Class Method Summary collapse
-
.app ⇒ Object
Method which build a Rack application and run the MailGrabber::Web::Application.
-
.call(env) ⇒ Object
Method to call MailGrabber::Web.
Class Method Details
.app ⇒ Object
Method which build a Rack application and run the MailGrabber::Web::Application.
19 20 21 22 23 24 25 26 27 |
# File 'lib/mail_grabber/web.rb', line 19 def app @app ||= Rack::Builder.new do use Rack::Static, urls: ['/images', '/javascripts', '/stylesheets'], root: File.('web/assets', __dir__) run Web::Application end end |
.call(env) ⇒ Object
Method to call MailGrabber::Web. This method will call the app method above.
33 34 35 |
# File 'lib/mail_grabber/web.rb', line 33 def call(env) app.call(env) end |