Sha256: 8325441725435b613c883c4f57298737dbb9077f263e9cbaa61c0272e77bd14f
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
module Beespew class FormBuilder < ActionView::Helpers::FormBuilder def beespew_field(options = {}) options = { class: 'beespew', placeholder: placeholder }. merge(options.with_indifferent_access) text_field Beespew.attribute, options end alias honeypot beespew_field private def placeholder I18n.t "beespew.placeholder", default: 'If you are human, leave this blank' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beespew-0.2.0 | lib/beespew/form_builder.rb |