Class: ActionView::Helpers::AttributeBuilders::TimeField

Inherits:
DatetimeField show all
Defined in:
lib/actionview_attribute_builders/attribute_builders/time_field.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

Methods inherited from DatetimeField

#html_attributes

Methods inherited from TextField

field_type, #html_attributes

Methods inherited from Base

#html_attributes

Constructor Details

#initialize(object_name, method_name, template_object, options = {}) ⇒ TimeField

Returns a new instance of TimeField.



7
8
9
10
# File 'lib/actionview_attribute_builders/attribute_builders/time_field.rb', line 7

def initialize(object_name, method_name, template_object, options = {})
  @include_seconds = options.delete(:include_seconds) { true }
  super
end