Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 887

Show
Ignore:
Timestamp:
03/11/05 01:55:18 (3 years ago)
Author:
david
Message:

Params for components should treat string and symbol keys indifferently

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/components.rb

    r862 r887  
    5555        request_for_component.send( 
    5656          :instance_variable_set, :@parameters,  
    57           (options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action], "id" => options[:id] }) 
     57          (options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action], "id" => options[:id] }).with_indifferent_access 
    5858        ) 
    5959        return request_for_component