Sha256: 40710bb09ff731a47fa3f65301de03eefe25419a9ed875c1bc787deab513162a

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

module TaoForm
  module Components
    module Select
      class MultipleResultComponent < ResultComponent

        def render &block
          if block_given?
            super
          else
            super {
              builder.select attribute_name, choices, options, {multiple: true}
            }
          end
        end

        def self.component_name
          :multiple_select_result
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tao_form-0.1.3 lib/tao_form/components/select/multiple_result_component.rb
tao_form-0.1.2 lib/tao_form/components/select/multiple_result_component.rb
tao_form-0.1.1 lib/tao_form/components/select/multiple_result_component.rb
tao_form-0.1.0 lib/tao_form/components/select/multiple_result_component.rb