Sha256: d18e91263271eec9aa428ac5cb67be21167779fceb19e3beb7ed1634306169b8
Contents?: true
Size: 822 Bytes
Versions: 35
Compression:
Stored size: 822 Bytes
Contents
# frozen_string_literal: true module ActionView module Helpers module Tags # :nodoc: class WeekdaySelect < Base # :nodoc: def initialize(object_name, method_name, template_object, options, html_options) @html_options = html_options super(object_name, method_name, template_object, options) end def render select_content_tag( weekday_options_for_select( value || @options[:selected], index_as_value: @options.fetch(:index_as_value, false), day_format: @options.fetch(:day_format, :day_names), beginning_of_week: @options.fetch(:beginning_of_week, Date.beginning_of_week) ), @options, @html_options ) end end end end end
Version data entries
35 entries across 33 versions & 4 rubygems