6
6
# you've limited to :test, :development, or :production.
7
7
Bundler . require ( :default , Rails . env ) if defined? ( Bundler )
8
8
9
- module Refinery
9
+ module RefineryApp
10
10
class Application < Rails ::Application
11
+ # Includes Refinery's application
12
+ include ::Refinery ::Application
13
+
11
14
# Settings in config/environments/* take precedence over those specified here.
12
15
# Application configuration should go into files in config/initializers
13
16
# -- all .rb files in that directory are automatically loaded.
@@ -25,26 +28,5 @@ class Application < Rails::Application
25
28
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
29
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
30
# config.time_zone = 'Central Time (US & Canada)'
28
-
29
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
- config . i18n . load_path += Dir [ Refinery . root . join ( 'vendor' , 'refinerycms' , '*/config/locales/*.{rb,yml}' ) . to_s ]
31
- # config.i18n.default_locale = :de
32
-
33
- # JavaScript files you want as :defaults (application.js is always included).
34
- config . action_view . javascript_expansions [ :defaults ] = %w( )
35
-
36
- # Configure the default encoding used in templates for Ruby 1.9.
37
- config . encoding = "utf-8"
38
-
39
- # Configure sensitive parameters which will be filtered from the log file.
40
- config . filter_parameters += [ :password , :password_confirmation ]
41
-
42
- # Specify a cache store to use
43
- config . cache_store = :memory_store
44
-
45
- # load in any settings that the developer wants after the initialization.
46
- config . after_initialize do
47
- require Rails . root . join ( 'config' , 'settings.rb' )
48
- end if Rails . root . join ( 'config' , 'settings.rb' ) . exist?
49
31
end
50
- end
32
+ end
0 commit comments