Sha256: b939c69fbb62059811c1963601682409c6160dc063a8a11dbe8b426362f7f5f4

Contents?: true

Size: 429 Bytes

Versions: 6

Compression:

Stored size: 429 Bytes

Contents

unless defined? SimpleForm
  begin
    require 'simple_form'
  rescue LoadError
    nil
  end

end
if defined? SimpleForm
  class AnchormodelRadioButtonsInput < SimpleForm::Inputs::CollectionRadioButtonsInput
    include Anchormodel::SimpleFormInputs::Helpers::AnchormodelInputsCommon

    private

    def sf_selection_key
      :checked
    end

    def before_render_input
      @input_type = :radio_buttons
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
anchormodel-0.2.5 lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb
anchormodel-0.2.4 lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb
anchormodel-0.2.3 lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb
anchormodel-0.2.2 lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb
anchormodel-0.2.0 lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb
anchormodel-0.1.5 lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb