changeset 39:aa6d58c8653b

Remove all initializers.
author edogawaconan <me@myconan.net>
date Thu, 11 Dec 2014 15:51:35 +0900
parents 9e03bbbb1d43
children 1a281427e841
files config/application.rb config/initializers/backtrace_silencers.rb config/initializers/cookies_serializer.rb config/initializers/filter_parameter_logging.rb config/initializers/inflections.rb config/initializers/mime_types.rb config/initializers/session_store.rb config/initializers/wrap_parameters.rb
diffstat 8 files changed, 1 insertions(+), 46 deletions(-) [+]
line wrap: on
line diff
--- a/config/application.rb	Thu Dec 11 15:47:36 2014 +0900
+++ b/config/application.rb	Thu Dec 11 15:51:35 2014 +0900
@@ -30,6 +30,7 @@
 
     # this isn't actually used but railties checks this variable during boot.
     config.secret_key_base = "herp a derp"
+    config.session_store :disabled
 
     if ENV["RT_MEMCACHED_SERVERS"]
       config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" }
--- a/config/initializers/backtrace_silencers.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
--- a/config/initializers/cookies_serializer.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.action_dispatch.cookies_serializer = :json
--- a/config/initializers/filter_parameter_logging.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure sensitive parameters which will be filtered from the log file.
-Rails.application.config.filter_parameters += [:password]
--- a/config/initializers/inflections.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-#   inflect.plural /^(ox)$/i, '\1en'
-#   inflect.singular /^(ox)en/i, '\1'
-#   inflect.irregular 'person', 'people'
-#   inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-#   inflect.acronym 'RESTful'
-# end
--- a/config/initializers/mime_types.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
--- a/config/initializers/session_store.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.session_store :disabled
--- a/config/initializers/wrap_parameters.rb	Thu Dec 11 15:47:36 2014 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
-  wrap_parameters :format => [:json] if respond_to?(:wrap_parameters)
-end