Changeset 8811
- Timestamp:
- 02/07/08 16:46:50 (7 months ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/request.rb (modified) (1 diff)
- trunk/actionpack/test/controller/request_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r8807 r8811 1 1 *SVN* 2 3 * Fix bug with setting Request#format= after the getter has cached the value. #10889 [cch1] 2 4 3 5 * Correct inconsistencies in RequestForgeryProtection docs. #11032 [mislav] trunk/actionpack/lib/action_controller/request.rb
r8625 r8811 114 114 def format=(extension) 115 115 parameters[:format] = extension.to_s 116 format116 @format = Mime::Type.lookup_by_extension(parameters[:format]) 117 117 end 118 118 trunk/actionpack/test/controller/request_test.rb
r8564 r8811 370 370 @request.env["CONTENT_TYPE"] = "text/html" 371 371 assert_equal Mime::HTML, @request.content_type 372 end 373 374 def test_format_assignment_should_set_format 375 @request.instance_eval { self.format = :txt } 376 assert !@request.format.xml? 377 @request.instance_eval { self.format = :xml } 378 assert @request.format.xml? 372 379 end 373 380