-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.rb
39 lines (33 loc) · 1.03 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
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 Myapp
class Application < Rails::Application
config.load_defaults 5.1
config.generators do |g|
g.orm :active_record
g.template_engine :slim
g.stylesheets false
g.javascripts false
g.test_framework false
g.view_specs false
g.controller_specs false
g.routing_specs false
g.helper_specs false
g.request_specs false
g.helper false
end
config.active_record.default_timezone = :local
config.time_zone = "Tokyo"
I18n.enforce_available_locales = true
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
config.i18n.default_locale = :ja
config.beginning_of_week = :sunday
config.paths.add 'lib', eager_load: true
def inspect
"#<#{self.class}>"
end
end
end