Sha256: 329a61b1973745f08ee4f1fd165b630ec944ab82d49b7990d695451deec4d98f
Contents?: true
Size: 805 Bytes
Versions: 15
Compression:
Stored size: 805 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ # # Removes simple_form's css class logic. module SimpleForm module ActionViewExtensions module FormHelper def simple_form_for(record, options = {}, &block) options[:builder] ||= SimpleForm::FormBuilder options[:html] ||= {} unless options[:html].key?(:novalidate) options[:html][:novalidate] = !SimpleForm.browser_validations end with_simple_form_field_error_proc do form_for(record, options, &block) end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems