Sha256: 770805e85e4bd510cc4e4d9ddd93ab0cd102cf70074b070c76b8ad88227494b7
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
module KisoThemes module SimpleForm module FormBuilderExtensions def cancel_button(*args) options = args.extract_options! url = options[:to] || :back template.link_to translate_required_text, url, class: 'btn' end def translate_required_text I18n.t(:"simple_form.buttons.cancel", default: 'Cancel') end end end end SimpleForm::FormBuilder.send(:include, KisoThemes::SimpleForm::FormBuilderExtensions)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kiso_themes-1.0.2 | lib/kiso_themes/extensions/simple_form/form_builder.rb |