Sha256: c067aa08b832e8530b94115b729ff526ab621372854d69faded6de9222bfe4f9

Contents?: true

Size: 579 Bytes

Versions: 6

Compression:

Stored size: 579 Bytes

Contents

require 'nested_form/builder_mixin'

module NestedForm
  class Builder < ::ActionView::Helpers::FormBuilder
    include ::NestedForm::BuilderMixin
  end

  begin
    require 'simple_form'
    class SimpleBuilder < ::SimpleForm::FormBuilder
      include ::NestedForm::BuilderMixin
    end
  rescue LoadError
  end

  begin
    require 'formtastic'
    class FormtasticBuilder < (defined?(::Formtastic::FormBuilder) ? Formtastic::FormBuilder : ::Formtastic::SemanticFormBuilder)
      include ::NestedForm::BuilderMixin
    end
  rescue LoadError
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bbenezech-nested_form-0.0.6 lib/nested_form/builders.rb
bbenezech-nested_form-0.0.5 lib/nested_form/builders.rb
bbenezech-nested_form-0.0.4 lib/nested_form/builders.rb
bbenezech-nested_form-0.0.3 lib/nested_form/builders.rb
bbenezech-nested_form-0.0.2 lib/nested_form/builders.rb
bbenezech-nested_form-0.0.1 lib/nested_form/builders.rb