21 lines
854 B
Ruby
21 lines
854 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.action_dispatch.default_headers['X-Frame-Options'] = "ALLOW-FROM http://lvh.me"
|
|
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
|
config.assets.precompile += %w( .svg .eot .woff .ttf .otf .woff2 )
|
|
end
|
|
end
|