2015-09-29 19:02:43 -04:00
|
|
|
require File.expand_path('../boot', __FILE__)
|
|
|
|
|
|
|
|
require "rails"
|
|
|
|
# Pick the frameworks you want:
|
|
|
|
require "active_model/railtie"
|
|
|
|
require "active_job/railtie"
|
|
|
|
require "active_record/railtie"
|
|
|
|
require "action_controller/railtie"
|
|
|
|
require "action_mailer/railtie"
|
|
|
|
require "action_view/railtie"
|
|
|
|
require "sprockets/railtie"
|
|
|
|
# require "rails/test_unit/railtie"
|
|
|
|
|
|
|
|
Bundler.require(*Rails.groups)
|
|
|
|
|
|
|
|
module DbzdokkanRails
|
|
|
|
class Application < Rails::Application
|
|
|
|
config.active_record.raise_in_transactional_callbacks = true
|
2015-10-27 09:42:56 -04:00
|
|
|
|
|
|
|
config.middleware.insert_before 0, "Rack::Cors" do
|
|
|
|
allow do
|
|
|
|
origins '*'
|
|
|
|
resource '*', headers: :any, methods: [:get]
|
|
|
|
end
|
|
|
|
end
|
2015-09-29 19:02:43 -04:00
|
|
|
end
|
|
|
|
end
|