# HG changeset patch # User Edho Arief # Date 1367938757 -32400 # Node ID cb30b72e8ded5da366d9d0f530da4b3d6128f953 # Parent 442c3ad459a746901c84781e0fdaa1bee000a15b Rails 4 deprecated, unused attribs removal. diff -r 442c3ad459a7 -r cb30b72e8ded config/application.rb --- a/config/application.rb Tue May 07 23:56:27 2013 +0900 +++ b/config/application.rb Tue May 07 23:59:17 2013 +0900 @@ -28,10 +28,6 @@ # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) - # Enable threaded mode except for rake tasks as it doesn't work quite well - # Reference: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/b13dbe0b8f12b7dc - config.threadsafe! unless $rails_rake_task - # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ] diff -r 442c3ad459a7 -r cb30b72e8ded config/environments/development.rb --- a/config/environments/development.rb Tue May 07 23:56:27 2013 +0900 +++ b/config/environments/development.rb Tue May 07 23:59:17 2013 +0900 @@ -6,9 +6,6 @@ # since you don't have to restart the web server when you make code changes. config.cache_classes = false - # Log error messages when you accidentally call methods on nil. - config.whiny_nils = true - # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false @@ -25,10 +22,6 @@ # Raise exception on mass assignment protection for Active Record models config.active_record.mass_assignment_sanitizer = :strict - # Log the query plan for queries taking more than this (works - # with SQLite, MySQL, and PostgreSQL) - config.active_record.auto_explain_threshold_in_seconds = 0.5 unless RUBY_PLATFORM == 'java' - # Do not compress assets config.assets.compress = false diff -r 442c3ad459a7 -r cb30b72e8ded config/environments/production.rb --- a/config/environments/production.rb Tue May 07 23:56:27 2013 +0900 +++ b/config/environments/production.rb Tue May 07 23:59:17 2013 +0900 @@ -60,8 +60,4 @@ # Send deprecation notices to registered listeners config.active_support.deprecation = :notify - - # Log the query plan for queries taking more than this (works - # with SQLite, MySQL, and PostgreSQL) - # config.active_record.auto_explain_threshold_in_seconds = 0.5 end diff -r 442c3ad459a7 -r cb30b72e8ded config/environments/test.rb --- a/config/environments/test.rb Tue May 07 23:56:27 2013 +0900 +++ b/config/environments/test.rb Tue May 07 23:59:17 2013 +0900 @@ -11,9 +11,6 @@ config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" - # Log error messages when you accidentally call methods on nil - config.whiny_nils = true - # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false