28 lines
947 B
Ruby
28 lines
947 B
Ruby
require_relative 'boot'
|
|
|
|
require 'rails/all'
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
# you've limited to :test, :development, or :production.
|
|
Bundler.require(*Rails.groups)
|
|
|
|
module InvoiceKeeper
|
|
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.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
|
|
config.i18n.default_locale = :pl
|
|
config.middleware.insert_before 0, Rack::Cors do
|
|
allow do
|
|
origins '*'
|
|
resource '*', :headers => :any, :methods => [:get, :post, :options]
|
|
end
|
|
end
|
|
|
|
|
|
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
|
config.assets.precompile += %w( .svg .eot .woff .ttf .otf .woff2 )
|
|
end
|
|
end
|