-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.rb
More file actions
36 lines (28 loc) · 1.05 KB
/
application.rb
File metadata and controls
36 lines (28 loc) · 1.05 KB
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
29
30
31
32
33
34
35
36
$:.unshift File.expand_path("../lib", __FILE__)
require "rails"
require "rails/all"
require "action_controller/bare"
require "active_model/model"
require "active_model_serializers"
require "rest_client"
class DuNordMap < Rails::Application
routes.append do
resources :buildings
end
# Enable thread-safe mode. Production style.
config.threadsafe!
# Remove some unneeded middlewares
config.middleware.delete "ActionDispatch::Flash"
config.middleware.delete "ActionDispatch::BestStandardsSupport"
config.middleware.delete "ActionDispatch::Static"
# Rails need a secret token for session, cookies, etc.
config.secret_token = "9b39a89107fb0effcfb36e06faceed9aa5309dfad0935ddcd92a713a7805476465da935d48142711a2bbf2fe1e5917c4b618d46c41545aa11f489208c2103ac6"
# Remove the annoying message on app boot
config.active_support.deprecation = :log
end
# Require everything under app dir
Dir["app/**/*.*"].each { |file| require_relative file }
# Custom configurations
SERVER_URL = "http://50.63.188.39:8080"
# Initialize the app!
DuNordMap.initialize!