Sha256: 0ddb27fb0f2bbcfc530f0cf6b4d234462e4db85a2df6e6ee2e78872cc58e0296
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
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) send(:"#{input_type}_input", merged_input_options) end def input_priority options[:priority] || SimpleForm.send(:"#{input_type}_priority") end protected def country_input(merged_input_options) @builder.send(:country_select, attribute_name, input_options.merge(priority_countries: input_priority), merged_input_options) end def time_zone_input(merged_input_options) @builder.send(:time_zone_select, attribute_name, input_priority, input_options, merged_input_options) end def skip_include_blank? super || input_priority.present? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_form-5.3.0 | lib/simple_form/inputs/priority_input.rb |
simple_form-5.2.0 | lib/simple_form/inputs/priority_input.rb |