forked from rughh/on_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.rb
54 lines (45 loc) · 1.88 KB
/
application.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require_relative "boot"
# remove active-storage so the fucker won't try to load the config
%w(
active_record/railtie
action_controller/railtie
action_view/railtie
action_mailer/railtie
active_job/railtie
rails/test_unit/railtie
sprockets/railtie
).each do |railtie|
require railtie
end
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module OnRuby
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.0
# 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.
# 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 = 'Europe/Berlin'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
config.i18n.locale = config.i18n.default_locale = :de
config.i18n.fallbacks = [I18n.default_locale]
config.i18n.available_locales = %i[de en es pl]
config.i18n.enforce_available_locales = true
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = 'utf-8'
# Configure sensitive parameters which will be filtered from the log file.
config.log_tags = [:host]
# Configure generators.
config.generators do |g|
g.template_engine :slim
g.test_framework :rspec, fixture: true, views: false
g.integration_tool :rspec, fixture: true, views: true
g.fixture_replacement :factory_girl, dir: 'spec/support/factories'
g.stylesheet_engine = :sass
end
end
end