BikeBikeBike/config/application.rb

37 lines
1.6 KiB
Ruby
Raw Normal View History

2013-04-19 19:14:51 +02:00
require File.expand_path('../boot', __FILE__)
require 'rails/all'
#require "#{Rails.root}/app/helpers/bike_bike_form_helper"
#require '/app/helpers/bike_bike_form_helper.rb'
2014-05-04 14:56:18 -06:00
#require 'dotenv'; Dotenv.load ".env.local", ".env.#{Rails.env}"
2013-04-19 19:14:51 +02:00
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
2013-04-19 19:14:51 +02:00
2014-03-09 14:43:33 -06:00
ENV['JPEGOPTIM_BIN'] = 'jpegoptim'
ENV['OPTIPNG_BIN'] = 'optipng'
2013-04-19 19:14:51 +02:00
2014-03-09 14:43:33 -06:00
module BikeBike
2014-07-24 00:16:33 -06:00
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.
2013-04-19 19:14:51 +02:00
2014-07-24 00:16:33 -06:00
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
2014-03-09 14:43:33 -06:00
2014-07-24 00:16:33 -06:00
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.action_controller.default_url_options = { :trailing_slash => true }
2014-12-18 21:29:53 -08:00
config.i18n.default_locale = :en
2014-07-24 00:16:33 -06:00
config.i18n.enforce_available_locales = false
2015-05-02 11:11:17 -07:00
self.paths['config/database'] = Rails.root.join('config', 'database.yml')
2015-03-17 20:29:17 -07:00
config.active_record.raise_in_transactional_callbacks = true
2016-06-28 17:27:16 -07:00
config.action_mailer.raise_delivery_errors = true
2016-05-10 18:43:46 -07:00
config.exceptions_app = self.routes
2016-05-15 12:51:50 -07:00
I18n.config.language_threshold = 0
2014-03-09 14:43:33 -06:00
end
2013-04-19 19:14:51 +02:00
end