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

Ticket #8650: active_record_helper_tag_arguments.diff

File active_record_helper_tag_arguments.diff, 0.9 kB (added by jcoglan, 1 year ago)
  • actionpack/lib/action_view/helpers/active_record_helper.rb

    old new  
    177177      end 
    178178 
    179179      alias_method :tag_without_error_wrapping, :tag 
    180       def tag(name, options
     180      def tag(name, options, open = false
    181181        if object.respond_to?("errors") && object.errors.respond_to?("on") 
    182           error_wrapping(tag_without_error_wrapping(name, options), object.errors.on(@method_name)) 
     182          error_wrapping(tag_without_error_wrapping(name, options, open), object.errors.on(@method_name)) 
    183183        else 
    184           tag_without_error_wrapping(name, options
     184          tag_without_error_wrapping(name, options, open
    185185        end 
    186186      end 
    187187