about summary refs log tree commit diff stats
path: root/config/initializers
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-06-24 14:20:22 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-06-24 14:20:22 -0400
commit5581530930129d7854ed5d99d058939ad9c790c2 (patch)
tree157515f64b34a86e0f6d33dc641e06a7ecc2982c /config/initializers
downloadthoughts-5581530930129d7854ed5d99d058939ad9c790c2.tar.gz
thoughts-5581530930129d7854ed5d99d058939ad9c790c2.tar.bz2
thoughts-5581530930129d7854ed5d99d058939ad9c790c2.zip
Initial commit
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/application_controller_renderer.rb6
-rw-r--r--config/initializers/assets.rb14
-rw-r--r--config/initializers/backtrace_silencers.rb7
-rw-r--r--config/initializers/cookies_serializer.rb5
-rw-r--r--config/initializers/filter_parameter_logging.rb4
-rw-r--r--config/initializers/inflections.rb16
-rw-r--r--config/initializers/mime_types.rb4
-rw-r--r--config/initializers/wrap_parameters.rb14
8 files changed, 70 insertions, 0 deletions
diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..51639b6 --- /dev/null +++ b/config/initializers/application_controller_renderer.rb
@@ -0,0 +1,6 @@
1# Be sure to restart your server when you modify this file.
2
3# ApplicationController.renderer.defaults.merge!(
4# http_host: 'example.org',
5# https: false
6# )
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 0000000..4b828e8 --- /dev/null +++ b/config/initializers/assets.rb
@@ -0,0 +1,14 @@
1# Be sure to restart your server when you modify this file.
2
3# Version of your assets, change this if you want to expire all your assets.
4Rails.application.config.assets.version = '1.0'
5
6# Add additional assets to the asset load path.
7# Rails.application.config.assets.paths << Emoji.images_path
8# Add Yarn node_modules folder to the asset load path.
9Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
11# Precompile additional assets.
12# application.js, application.css, and all non-JS/CSS in the app/assets
13# folder are already added.
14# Rails.application.config.assets.precompile += %w( admin.js admin.css )
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 0000000..59385cd --- /dev/null +++ b/config/initializers/backtrace_silencers.rb
@@ -0,0 +1,7 @@
1# Be sure to restart your server when you modify this file.
2
3# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
6# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7# Rails.backtrace_cleaner.remove_silencers!
diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/config/initializers/cookies_serializer.rb
@@ -0,0 +1,5 @@
1# Be sure to restart your server when you modify this file.
2
3# Specify a serializer for the signed and encrypted cookie jars.
4# Valid options are :json, :marshal, and :hybrid.
5Rails.application.config.action_dispatch.cookies_serializer = :json
diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000..4a994e1 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb
@@ -0,0 +1,4 @@
1# Be sure to restart your server when you modify this file.
2
3# Configure sensitive parameters which will be filtered from the log file.
4Rails.application.config.filter_parameters += [:password]
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 0000000..ac033bf --- /dev/null +++ b/config/initializers/inflections.rb
@@ -0,0 +1,16 @@
1# Be sure to restart your server when you modify this file.
2
3# Add new inflection rules using the following format. Inflections
4# are locale specific, and you may define rules for as many different
5# locales as you wish. All of these examples are active by default:
6# ActiveSupport::Inflector.inflections(:en) do |inflect|
7# inflect.plural /^(ox)$/i, '\1en'
8# inflect.singular /^(ox)en/i, '\1'
9# inflect.irregular 'person', 'people'
10# inflect.uncountable %w( fish sheep )
11# end
12
13# These inflection rules are supported but not enabled by default:
14# ActiveSupport::Inflector.inflections(:en) do |inflect|
15# inflect.acronym 'RESTful'
16# end
diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 0000000..dc18996 --- /dev/null +++ b/config/initializers/mime_types.rb
@@ -0,0 +1,4 @@
1# Be sure to restart your server when you modify this file.
2
3# Add new mime types for use in respond_to blocks:
4# Mime::Type.register "text/richtext", :rtf
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/config/initializers/wrap_parameters.rb
@@ -0,0 +1,14 @@
1# Be sure to restart your server when you modify this file.
2
3# This file contains settings for ActionController::ParamsWrapper which
4# is enabled by default.
5
6# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7ActiveSupport.on_load(:action_controller) do
8 wrap_parameters format: [:json]
9end
10
11# To enable root element in JSON for ActiveRecord objects.
12# ActiveSupport.on_load(:active_record) do
13# self.include_root_in_json = true
14# end