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

Changeset 4836

Show
Ignore:
Timestamp:
08/29/06 00:20:18 (2 years ago)
Author:
david
Message:

Reload should take options for the replace

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/helpers/prototype_helper.rb

    r4610 r4836  
    784784      end 
    785785       
    786       def reload 
    787         replace :partial => @id.to_s 
     786      def reload(options_for_replace = {}) 
     787        replace(options_for_replace.merge({ :partial => @id.to_s })) 
    788788      end 
    789789