Sha256: 40edda07a5d8e00d76ee066b9aee6c6c95d77981d31e0333979a0de058a5bcf9

Contents?: true

Size: 578 Bytes

Versions: 18

Compression:

Stored size: 578 Bytes

Contents

class RadioCollectionInput < SimpleForm::Inputs::CollectionRadioButtonsInput

  def input(wrapper_options)
    label_method, value_method = detect_collection_methods

    @builder.send("collection_radio_buttons",
      attribute_name, collection, value_method, label_method,
      input_options, input_html_options, &collection_block_for_nested_boolean_style
    )
  end

  protected

  def build_nested_boolean_style_item_tag(collection_builder)
    collection_builder.radio_button + "<span class='radio_collection-bullet'></span>".html_safe + collection_builder.text
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
fae-rails-3.0.0 app/inputs/radio_collection_input.rb
fae-rails-2.2.0 app/inputs/radio_collection_input.rb
fae-rails-2.1.0 app/inputs/radio_collection_input.rb
fae-railsz-2.1.0 app/inputs/radio_collection_input.rb
fae-rails-2.0.0 app/inputs/radio_collection_input.rb
fae-rails-1.7.1 app/inputs/radio_collection_input.rb
fae-rails-1.7.0 app/inputs/radio_collection_input.rb
fae-rails-1.6.0 app/inputs/radio_collection_input.rb
fae-rails-1.5.1 app/inputs/radio_collection_input.rb
fae-rails-1.5.0 app/inputs/radio_collection_input.rb
fae-rails-1.4.1 app/inputs/radio_collection_input.rb
fae-rails-1.4.0 app/inputs/radio_collection_input.rb
fae-rails-1.3.1 app/inputs/radio_collection_input.rb
fae-rails-1.3.0 app/inputs/radio_collection_input.rb
fae-rails-1.2.5 app/inputs/radio_collection_input.rb
fae-rails-1.2.4 app/inputs/radio_collection_input.rb
fae-rails-1.2.3 app/inputs/radio_collection_input.rb
fae-rails-1.2.2 app/inputs/radio_collection_input.rb