Sha256: fb64037fe452f00cb5def7b503aa57e70f5109a47717a13c759bdb3b929f399a
Contents?: true
Size: 635 Bytes
Versions: 12
Compression:
Stored size: 635 Bytes
Contents
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
12 entries across 12 versions & 3 rubygems