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

Ticket #4632: integration_render_component_fix.patch

File integration_render_component_fix.patch, 0.5 kB (added by edward.frederick@revolution.com, 2 years ago)

Patch for fixing render_component in integration tests.

  • actionpack/lib/action_controller/integration.rb

    old new  
    334334        end 
    335335     
    336336        def new_with_capture(*args) 
    337           self.last_instantiation ||= new_without_capture(*args) 
     337          controller = new_without_capture(*args) 
     338          self.last_instantiation ||= controller 
     339          controller 
    338340        end 
    339341      end 
    340342    end