This repository has been archived by the owner on Mar 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.rb
55 lines (42 loc) · 1.91 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
55
require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_model/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module RailsApp
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.
# 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)'
# Set autoload lib/ directry
config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths += Dir["#{config.root}/lib/**/"]
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
config.i18n.load_path += Dir[Rails.root.join( 'config', 'locales', '**', '*.{rb,yml}' ).to_s]
# I18n.enforce_available_locales = true
config.i18n.default_locale = :ja
config.assets.precompile += %w( *.png *.jpg, *.jpeg *.gif )
config.assets.initialize_on_precompile = false
# Paperclip
config.paperclip_defaults = {
storage: :azure_storage,
path: ":class/:id/:attachment/:style/:filename",
azure_credentials: {
account_name: Rails.application.secrets.azure_credentials['account_name'],
access_key: Rails.application.secrets.azure_credentials['access_key']
},
azure_container: "meshiya",
url: ":azure_domain_url",
}
end
end