bcardarella/client_side_validations — Issue #276: update field_error_proc leads conflict by change field_error_proc
Author: halida
Created: 2012-02-17 02:33:10+00:00
State: open

in https://github.com/sferik/rails_admin/blob/master/app/helpers/rails_admin/form_builder.rb :

```ruby
ActionView::Base.field_error_proc = Proc.new { |html_tag, instance| html_tag }
```

but in my application, I'm using client_side_validations, it use it to update form with error:

https://github.com/bcardarella/client_side_validations/blob/master/lib/generators/templates/client_side_validations/initializer.rb

```ruby
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
unless html_tag =~ /^#{html_tag}#{instance.error_message.first}

}.html_safe
else
%{

#{html_tag}

}.html_safe
end
end
```

form_builder override my configuration, or my configuration override form_builder, any way to fix it?