aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-07-09 18:35:35 +0200
committerMichael Koziarski <michael@koziarski.com>2008-07-09 18:36:15 +0200
commit4ce9931f4f30045b2975328e7d42a02188e35079 (patch)
treeeddc7d54a73303128b28cc5eb62648e556696a19 /actionpack/lib/action_controller/base.rb
parent6b61e95dc8d717b4500ab623816863c0bb707e2b (diff)
downloadrails-4ce9931f4f30045b2975328e7d42a02188e35079.tar.gz
rails-4ce9931f4f30045b2975328e7d42a02188e35079.tar.bz2
rails-4ce9931f4f30045b2975328e7d42a02188e35079.zip
Reenable the use of the Accept header to give people a chance to update their applications and provide feedback.
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-xactionpack/lib/action_controller/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index f6d5491100..dd50f17c1c 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -343,12 +343,12 @@ module ActionController #:nodoc:
# Indicates whether the response format should be determined by examining the Accept HTTP header,
# or by using the simpler params + ajax rules.
#
- # If this is set to +true+ then +respond_to+ and +Request#format+ will take the Accept header into
- # account. If it is set to false (the default) then the request format will be determined solely
+ # If this is set to +true+ (the default) then +respond_to+ and +Request#format+ will take the Accept
+ # header into account. If it is set to false then the request format will be determined solely
# by examining params[:format]. If params format is missing, the format will be either HTML or
# Javascript depending on whether the request is an AJAX request.
cattr_accessor :use_accept_header
- self.use_accept_header = false
+ self.use_accept_header = true
# Controls whether request forgergy protection is turned on or not. Turned off by default only in test mode.
class_inheritable_accessor :allow_forgery_protection