-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.rb
28 lines (24 loc) · 820 Bytes
/
app.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'sinatra'
require 'haml'
require 'sidekiq'
require 'bcrypt'
require 'sinatra/activerecord'
require 'sinatra/content_for'
require 'sinatra/config_file'
require 'sinatra/flash'
require_relative 'config/environment'
require_relative 'app/helpers/application_helper'
require_relative 'config/initializers/strong_params'
require_relative 'config/initializers/sidekiq'
class CarrierPigeon < Sinatra::Application
register Sinatra::ActiveRecordExtension, Sinatra::Flash
helpers ApplicationHelper, Sinatra::ContentFor
enable :sessions
config_file 'config/secrets.yml'
set :session_secret, settings.secret_key_base
set public_folder: 'app/assets'
set views: 'app/views'
end
require_relative 'app/routes/application'
require_relative 'app/models/application'
require_relative 'app/workers/message_destroy_worker'