lib/action_view/base.rb in actionview-7.0.0.alpha2 vs lib/action_view/base.rb in actionview-7.0.0.rc1

- old
+ new

@@ -140,11 +140,11 @@ # code}[https://github.com/jimweirich/builder]. class Base include Helpers, ::ERB::Util, Context # Specify the proc used to decorate input tags that refer to attributes with errors. - cattr_accessor :field_error_proc, default: Proc.new { |html_tag, instance| "<div class=\"field_with_errors\">#{html_tag}</div>".html_safe } + cattr_accessor :field_error_proc, default: Proc.new { |html_tag, instance| content_tag :div, html_tag, class: "field_with_errors" } # How to complete the streaming when an exception occurs. # This is our best guess: first try to close the attribute, then the tag. cattr_accessor :streaming_completion_on_exception, default: %("><script>window.location = "/500.html"</script></html>) @@ -153,12 +153,9 @@ # (e.g., an Admin::PostsController would render @post using /admin/posts/_post.erb) class_attribute :prefix_partial_path_with_controller_namespace, default: true # Specify default_formats that can be rendered. cattr_accessor :default_formats - - # Specify whether an error should be raised for missing translations - cattr_accessor :raise_on_missing_translations, default: false # Specify whether submit_tag should automatically disable on click cattr_accessor :automatically_disable_submit_tag, default: true # Annotate rendered view with file names