41 lines
1.3 KiB
Ruby
Executable File
41 lines
1.3 KiB
Ruby
Executable File
require_relative 'boot'
|
|
|
|
require 'csv'
|
|
require 'rails/all'
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
# you've limited to :test, :development, or :production.
|
|
Bundler.require(*Rails.groups)
|
|
|
|
require 'carrierwave/orm/activerecord'
|
|
require 'carrierwave/processing/mini_magick'
|
|
|
|
module SXRestaurants
|
|
class Application < Rails::Application
|
|
# Settings in config/environments/* take precedence over those specified here.
|
|
# Application configuration should go into files in config/initializers
|
|
# -- all .rb files in that directory are automatically loaded.
|
|
config.i18n.default_locale = :'en' # English 'en'
|
|
config.i18n.fallbacks = [I18n.default_locale]
|
|
|
|
config.active_record.time_zone_aware_types = [:datetime, :time]
|
|
config.active_job.queue_adapter = :sidekiq
|
|
config.time_zone = 'Asia/Yangon'
|
|
config.autoload_paths << Rails.root.join('app/services')
|
|
|
|
config.action_cable.disable_request_forgery_protection=true
|
|
config.action_cable.allowed_request_origins = [/http:\/\/*/, /https:\/\/*/]
|
|
config.middleware.insert_before ActionDispatch::Static, Rack::Cors do
|
|
allow do
|
|
origins '*'
|
|
resource(
|
|
'*',
|
|
headers: :any,
|
|
methods: [:get, :patch, :put, :delete, :post, :options]
|
|
)
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|