Sha256: 115369f930f77c2d3db30b8db7e689389fd99512a37f0736bf02f68fd4d782fb

Contents?: true

Size: 317 Bytes

Versions: 46

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module Ariadne
  # :nodoc:
  module Form
    def self.inline_form(builder, base = nil, &block)
      base ||= defined?(ApplicationForm) ? ApplicationForm : Ariadne::Forms::Base

      klass = Class.new(base) do
        form(&block)
      end

      klass.new(builder)
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.92 app/lib/ariadne/form.rb
ariadne_view_components-0.0.91 app/lib/ariadne/form.rb
ariadne_view_components-0.0.90 app/lib/ariadne/form.rb
ariadne_view_components-0.0.89.1 app/lib/ariadne/form.rb
ariadne_view_components-0.0.89 app/lib/ariadne/form.rb
ariadne_view_components-0.0.88 app/lib/ariadne/form.rb
ariadne_view_components-0.0.87 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.9 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.8 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.7 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.6 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.5 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.4 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.3 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.2 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86.1 app/lib/ariadne/form.rb
ariadne_view_components-0.0.86 app/lib/ariadne/form.rb
ariadne_view_components-0.0.85 app/lib/ariadne/form.rb
ariadne_view_components-0.0.84 app/lib/ariadne/form.rb
ariadne_view_components-0.0.83.3 app/lib/ariadne/form.rb