Changeset 4277
- Timestamp:
- 04/26/06 18:35:53 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/request.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r4272 r4277 1 1 *SVN* 2 3 * Documentation for AbstractRequest. Closes #4895. [kevin.clark@gmail.com] 2 4 3 5 * Refactor various InstanceTag instance method to class methods. Closes #4800. [skaes@web.de] trunk/actionpack/lib/action_controller/request.rb
r3989 r4277 1 1 module ActionController 2 # These methods are available in both the production and test Request objects. 2 # Subclassing AbstractRequest makes these methods available to the request objects used in production and testing, 3 # CgiRequest and TestRequest 3 4 class AbstractRequest 4 5 cattr_accessor :relative_url_root … … 66 67 end 67 68 69 # Returns the accepted MIME type for the request 68 70 def accepts 69 71 @accepts ||= … … 203 205 end 204 206 205 def path_parameters=(parameters) 207 def path_parameters=(parameters) #:nodoc: 206 208 @path_parameters = parameters 207 209 @symbolized_path_parameters = @parameters = nil 208 210 end 209 211 210 def symbolized_path_parameters 212 # The same as <tt>path_parameters</tt> with explicitly symbolized keys 213 def symbolized_path_parameters 211 214 @symbolized_path_parameters ||= path_parameters.symbolize_keys 212 215 end 213 216 217 # Returns a hash with the parameters used to form the path of the request 218 # 219 # Example: 220 # 221 # {:action => 'my_action', :controller => 'my_controller'} 214 222 def path_parameters 215 223 @path_parameters ||= {}