Sha256: acabf7e75797480fe3bcaf35d4230b672ad826b1c26a266dbb6794dc4b7f29a1
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
module FormtasticBootstrap module Helpers module ActionsHelper include Formtastic::Helpers::ActionsHelper include FormtasticBootstrap::Helpers::FieldsetWrapper def actions(*args, &block) html_options = args.extract_options! html_options[:class] ||= "form-actions" if block_given? field_set_and_list_wrapping(html_options, &block) else args = default_actions if args.empty? contents = args.map { |action_name| action(action_name) } field_set_and_list_wrapping(html_options, contents) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems