Sha256: dc8cdcf73488e4f6fff24fa695070c80045e656850ad5edc375fc685a98df692
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
# frozen_string_literal: true require_relative "collection_helpers" module ActionView module Helpers module Tags # :nodoc: class CollectionRadioButtons < Base # :nodoc: include CollectionHelpers class RadioButtonBuilder < Builder # :nodoc: def radio_button(extra_html_options = {}) html_options = extra_html_options.merge(@input_html_options) html_options[:skip_default_ids] = false @template_object.radio_button(@object_name, @method_name, @value, html_options) end end def render(&block) render_collection_for(RadioButtonBuilder, &block) end private def render_component(builder) builder.radio_button + builder.label end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | actionview/lib/action_view/helpers/tags/collection_radio_buttons.rb |