Sha256: ad1bc6d437c590df36eab01dcd2b6b50def55a3d517ada92aedff0fcf5eaddef
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true module SimpleForm module Inputs class PriorityInput < CollectionSelectInput def input(wrapper_options = nil) merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) @builder.send(:"#{input_type}_select", attribute_name, input_priority, input_options, merged_input_options) end def input_priority options[:priority] || SimpleForm.send(:"#{input_type}_priority") end protected def has_required? false end def skip_include_blank? super || input_priority.present? end end end end
Version data entries
4 entries across 4 versions & 1 rubygems