Sha256: b6ae2d90d4dcecfb46be1aa048472695a8483f2ba849aa018306da41ed5a0a02
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module Beespew class FormBuilder < ActionView::Helpers::FormBuilder def beespew_field(options = {}) options = { class: 'beespew', placeholder: placeholder, tabindex: -1 }. 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-1.0.0 | lib/beespew/form_builder.rb |