Sha256: 0958d2a77d903801b5c26b283b1c6ffd4302de5b433c95761185cd178bb13f39
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 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) ), @options, @html_options ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionview-7.0.0.alpha2 | lib/action_view/helpers/tags/weekday_select.rb |
actionview-7.0.0.alpha1 | lib/action_view/helpers/tags/weekday_select.rb |