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 177 177 end 178 178 179 179 alias_method :tag_without_error_wrapping, :tag 180 def tag(name, options )180 def tag(name, options, open = false) 181 181 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)) 183 183 else 184 tag_without_error_wrapping(name, options )184 tag_without_error_wrapping(name, options, open) 185 185 end 186 186 end 187 187