Sha256: 5068ac771c60ed645e6821f544bd04c0182fd6d0e8ad7df0d27de957ea0c7402

Contents?: true

Size: 804 Bytes

Versions: 11

Compression:

Stored size: 804 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

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.13.5 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.13.4 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.13.3 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.13.2 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.12.3 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.12.2 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.13.1 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.12.1 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.13.0 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb
fat_free_crm-0.12.0 lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb