Sha256: 665d0b24efb7b3cd07d26e098ac57a4fe3fcba2e592ae9f30b7d37d14e84b4f9
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
module FormtasticRebootstrap module Helpers module ActionsHelper include Formtastic::Helpers::ActionsHelper include FormtasticRebootstrap::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formtastic_rebootstrap-0.0.2 | lib/formtastic_rebootstrap/helpers/actions_helper.rb |
formtastic_rebootstrap-0.0.1 | lib/formtastic_rebootstrap/helpers/actions_helper.rb |