Sha256: 396e5746158788cf6ff1d798ff669fb720022bedbb7b7d50c624b81c927a5786

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

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

end
if defined? SimpleForm
  class AnchormodelCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput
    include Anchormodel::SimpleFormInputs::Helpers::AnchormodelInputsCommon

    private

    def sf_selection_key
      :checked
    end

    def before_render_input
      @input_type = :check_boxes
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
anchormodel-0.2.4 lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb
anchormodel-0.2.3 lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb
anchormodel-0.2.2 lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb
anchormodel-0.2.0 lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb