Sha256: 71b136aa7e32c1ea497a93e02b012af4388ee6943fc75100524fdc2867cb3f96

Contents?: true

Size: 643 Bytes

Versions: 180

Compression:

Stored size: 643 Bytes

Contents

module ActionView
  module Helpers
    module Tags # :nodoc:
      class TimeZoneSelect < Base # :nodoc:
        def initialize(object_name, method_name, template_object, priority_zones, options, html_options)
          @priority_zones = priority_zones
          @html_options   = html_options

          super(object_name, method_name, template_object, options)
        end

        def render
          select_content_tag(
            time_zone_options_for_select(value(@object) || @options[:default], @priority_zones, @options[:model] || ActiveSupport::TimeZone), @options, @html_options
          )
        end
      end
    end
  end
end

Version data entries

180 entries across 175 versions & 13 rubygems

Version Path
actionview-5.1.3 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.3.rc3 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.0.5 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.0.5.rc2 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.3.rc2 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.0.5.rc1 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.3.rc1 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.2 lib/action_view/helpers/tags/time_zone_select.rb
actionview-4.2.9 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.2.rc1 lib/action_view/helpers/tags/time_zone_select.rb
actionview-4.2.9.rc2 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.0.4 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.0.4.rc1 lib/action_view/helpers/tags/time_zone_select.rb
actionview-4.2.9.rc1 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.1 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.0.3 lib/action_view/helpers/tags/time_zone_select.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionview-5.0.2/lib/action_view/helpers/tags/time_zone_select.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionview-4.2.8/lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.0 lib/action_view/helpers/tags/time_zone_select.rb
actionview-5.1.0.rc2 lib/action_view/helpers/tags/time_zone_select.rb