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

Ticket #11500: documentation_fix_for_sortable_element.diff

File documentation_fix_for_sortable_element.diff, 0.9 kB (added by infrared, 3 months ago)
  • actionpack/lib/action_view/helpers/scriptaculous_helper.rb

    old new  
    8181      # 
    8282      # <tt>:format</tt>::               A regular expression to determine what to send 
    8383      #                                  as the serialized id to the server (the default 
    84       #                                  is <tt>/^[^_]*_(.*)$/</tt>). 
     84      #                                  is <tt>/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/</tt>). 
    8585      #                                   
    8686      # <tt>:constraint</tt>::           Whether to constrain the dragging to either <tt>:horizontal</tt> 
    8787      #                                  or <tt>:vertical</tt> (or false to make it unconstrained).