Sha256: 4a3854e2b32db1a057e8ae3d068ea7024afd55989b139fe191f5c83454f3a014
Contents?: true
Size: 641 Bytes
Versions: 4
Compression:
Stored size: 641 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
4 entries across 4 versions & 1 rubygems