Module: MailCatcher::Web
- Extended by:
- Web
- Included in:
- Web
- Defined in:
- lib/mail_catcher/web.rb,
lib/mail_catcher/web/application.rb
Defined Under Namespace
Classes: Application
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mail_catcher/web.rb', line 8 def app @@app ||= Rack::Builder.new do if ENV["MAILCATCHER_ENV"] == "development" require "mail_catcher/web/assets" map("/assets") { run Assets } end map("/") { run Application } end end |