Sha256: 86bfaaddce898144652c0eb90586ab4586b2e4f5cece61da018aecc4d51bf8bc

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

require 'template_form/version'
require 'template_form/form_helper'

module TemplateForm

  def self.field_error_proc
    noop_field_error_proc
  end

  def self.form_type
    @form_type || :bulma
  end

  def self.form_type=(val)
    @form_type = val
  end

  private

  def self.noop_field_error_proc
    Proc.new { |html_tag, instance| html_tag }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
template_form-0.4.7 lib/template_form.rb
template_form-0.4.6 lib/template_form.rb
template_form-0.4.5 lib/template_form.rb
template_form-0.4.4 lib/template_form.rb
template_form-0.4.3 lib/template_form.rb