Description:
default config
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r878:6a10ef0d24b7 - - 1 file changed: 10 inserted, 17 deleted

@@ -1,13 +1,10
1 - require File.expand_path('../boot', __FILE__)
1 + require_relative "boot"
2
2
3 - require 'rails/all'
3 + require "rails/all"
4
4
5 - if defined?(Bundler)
5 + # Require the gems listed in Gemfile, including any gems
6 - # If you precompile assets before deploying to production, use this line
6 + # you've limited to :test, :development, or :production.
7 - Bundler.require(*Rails.groups(:assets => %w(development test)))
7 + Bundler.require(*Rails.groups)
8 - # If you want your assets lazily compiled in production, use this line
9 - # Bundler.require(:default, :assets, Rails.env)
10 - end
11
8
12 module CafeGrader
9 module CafeGrader
13 class Application < Rails::Application
10 class Application < Rails::Application
@@ -37,23 +34,19
37 # Configure the default encoding used in templates for Ruby 1.9.
34 # Configure the default encoding used in templates for Ruby 1.9.
38 config.encoding = "utf-8"
35 config.encoding = "utf-8"
39
36
40 - # Configure sensitive parameters which will be filtered from the log file.
41 - config.filter_parameters += [:password]
42 -
43 # Enable escaping HTML in JSON.
37 # Enable escaping HTML in JSON.
44 config.active_support.escape_html_entities_in_json = true
38 config.active_support.escape_html_entities_in_json = true
45
39
40 + config.load_defaults 7.0
41 +
42 + #disable active storage default routes, so the file won't be publicly available
43 + #config.active_storage.draw_routes = false
44 +
46 # Use SQL instead of Active Record's schema dumper when creating the database.
45 # Use SQL instead of Active Record's schema dumper when creating the database.
47 # This is necessary if your schema can't be completely dumped by the schema dumper,
46 # This is necessary if your schema can't be completely dumped by the schema dumper,
48 # like if you have constraints or database-specific column types
47 # like if you have constraints or database-specific column types
49 # config.active_record.schema_format = :sql
48 # config.active_record.schema_format = :sql
50
49
51 - # Enable the asset pipeline
52 - config.assets.enabled = true
53 -
54 - # Version of your assets, change this if you want to expire all your assets
55 - config.assets.version = '1.0'
56 -
57 # ---------------- IMPORTANT ----------------------
50 # ---------------- IMPORTANT ----------------------
58 # If we deploy the app into a subdir name "grader", be sure to do "rake assets:precompile RAILS_RELATIVE_URL_ROOT=/grader"
51 # If we deploy the app into a subdir name "grader", be sure to do "rake assets:precompile RAILS_RELATIVE_URL_ROOT=/grader"
59 # moreover, using the following line instead also known to works
52 # moreover, using the following line instead also known to works
You need to be logged in to leave comments. Login now