Skip to content

Cant override field_error_proc #961

@fedegl

Description

@fedegl

I want to override the ActionView::Base.field_error_proc in my application for other purposes, but refinery is defining a different html for the field_error_proc and I can't override it in a initializer.

this is defined in refinerycms-core.rb

ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
  "<span class=\"fieldWithErrors\">#{html_tag}</span>".html_safe
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions