Sha256: 2866a85627e01f7a07bd53723938641325766b330c56a3a5a2845f9359fb0c63

Contents?: true

Size: 374 Bytes

Versions: 6

Compression:

Stored size: 374 Bytes

Contents

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

end
if defined? SimpleForm
  class AnchormodelInput < SimpleForm::Inputs::CollectionSelectInput
    include Anchormodel::SimpleFormInputs::Helpers::AnchormodelInputsCommon

    private

    def sf_selection_key
      :selected
    end

    def before_render_input; 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_input.rb
anchormodel-0.2.4 lib/anchormodel/simple_form_inputs/anchormodel_input.rb
anchormodel-0.2.3 lib/anchormodel/simple_form_inputs/anchormodel_input.rb
anchormodel-0.2.2 lib/anchormodel/simple_form_inputs/anchormodel_input.rb
anchormodel-0.2.0 lib/anchormodel/simple_form_inputs/anchormodel_input.rb
anchormodel-0.1.5 lib/anchormodel/simple_form_inputs/anchormodel_input.rb