Sha256: 1fc3298c4733b58da9d0c4fd1c07e4f6f00af2ba1abaab2739a64ce22412b22a
Contents?: true
Size: 532 Bytes
Versions: 4
Compression:
Stored size: 532 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 def self.template_path @template_path || Pathname.new("#{Rails.root}/app/forms") end def self.template_path=(val) @template_path = Pathname.new(val) end private def self.noop_field_error_proc Proc.new { |html_tag, instance| html_tag } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
template_form-0.4.11 | lib/template_form.rb |
template_form-0.4.10 | lib/template_form.rb |
template_form-0.4.9 | lib/template_form.rb |
template_form-0.4.8 | lib/template_form.rb |