Class: Koi::Helpers::AttributeTypes::DatetimeType
- Inherits:
-
Base
- Object
- Base
- Koi::Helpers::AttributeTypes::DatetimeType
show all
- Defined in:
- lib/generators/koi/helpers/attribute_types.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute
Instance Method Summary
collapse
Methods inherited from Base
#govuk_input, #initialize
Instance Method Details
#collection_attribute ⇒ Object
111
112
113
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 111
def collection_attribute
%(attribute :#{attribute.name}, :date)
end
|
#index_row ⇒ Object
103
104
105
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 103
def index_row
%(<% row.datetime :#{attribute.name} %>)
end
|
#show_row ⇒ Object
107
108
109
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 107
def show_row
%(<% row.datetime :#{attribute.name} %>)
end
|