Sha256: c5ab0242ef6532b39ba869039536b98e713167a2fa09b13b9382810ba3db78e1

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

$:.unshift Dir.pwd

require 'bundler'
Bundler.setup :default

require "tiny-rails"
require "rails"

require "action_controller/railtie"
require "sprockets/railtie"
require "action_mailer/railtie"

Bundler.require :default

class TinyRailsApp < Rails::Application
  config.consider_all_requests_local = true

  config.active_support.deprecation = :log

  config.autoload_paths << config.root

  config.middleware.delete "Rack::Lock"
  config.middleware.delete "ActionDispatch::BestStandardsSupport"
  config.middleware.use Rails::Rack::LogTailer, "log/#{Rails.env}.log"

  # We need a secret token for session, cookies, etc.
  config.secret_token = "49837489qkuweoiuoqwehisuakshdjksadhaisdy78o34y138974xyqp9rmye8yrpiokeuioqwzyoiuxftoyqiuxrhm3iou1hrzmjk"

  # Enable asset pipeline
  config.assets.enabled = true
  config.assets.debug   = true

  config.action_mailer.delivery_method = :letter_opener_web
end

require 'initializers' if File.exists?('initializers.rb')

TinyRailsApp.initialize!

TinyRailsApp.routes.draw do
  get   "/" => 'application#index'
  post  "/" => 'application#send_mail'
  mount LetterOpenerWeb::Engine, at: "/letter_opener"
  match "/favicon.ico", :to => proc {|env| [200, {}, [""]] }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
letter_opener_web-1.2.0 demo/boot.rb
letter_opener_web-1.1.3 demo/boot.rb
letter_opener_web-1.1.2 demo/boot.rb
letter_opener_web-1.1.1 demo/boot.rb
letter_opener_web-1.1.0 demo/boot.rb
letter_opener_web-1.0.3 demo/boot.rb
letter_opener_web-1.0.2 demo/boot.rb
letter_opener_web-1.0.1 demo/boot.rb
letter_opener_web-1.0.0 demo/boot.rb