class SimpleForm::Inputs::PriorityInput

Public Instance Methods

input(wrapper_options = nil) click to toggle source
# File lib/simple_form/inputs/priority_input.rb, line 5
def input(wrapper_options = nil)
  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

  send(:"#{input_type}_input", merged_input_options)
end
input_priority() click to toggle source
# File lib/simple_form/inputs/priority_input.rb, line 11
def input_priority
  options[:priority] || SimpleForm.send(:"#{input_type}_priority")
end

Protected Instance Methods

country_input(merged_input_options) click to toggle source
# File lib/simple_form/inputs/priority_input.rb, line 17
def country_input(merged_input_options)
  @builder.send(:country_select,
                attribute_name,
                input_options.merge(priority_countries: input_priority),
                merged_input_options)
end
skip_include_blank?() click to toggle source
# File lib/simple_form/inputs/priority_input.rb, line 32
def skip_include_blank?
  super || input_priority.present?
end
time_zone_input(merged_input_options) click to toggle source
# File lib/simple_form/inputs/priority_input.rb, line 24
def time_zone_input(merged_input_options)
  @builder.send(:time_zone_select,
                attribute_name,
                input_priority,
                input_options,
                merged_input_options)
end