Permalink
Browse files

Bugfix: make sure that :controller in options hash is a string, :symbols

might crash rails
  • Loading branch information...
1 parent 83fd4c6 commit 22ac63e9dd0868766aef5ef5215617244ca6e321 @vhochstein vhochstein committed Apr 22, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/render_component/components.rb
@@ -86,6 +86,7 @@ def session_with_render_component
private
def component_response(options, reuse_response)
+ options[:controller] = options[:controller].to_s if options[:controller]
klass = component_class(options)
component_request = request_for_component(klass.controller_path, options)
# needed ???

0 comments on commit 22ac63e

Please sign in to comment.