Class: EditableComponents::ItemDatetime
- Inherits:
-
Item
show all
- Defined in:
- app/models/editable_components/item_datetime.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Item
#attr_id, #class_name, #editable, item_types, #opt_input, #to_s, #update_data
Class Method Details
.type_name ⇒ Object
10
11
12
|
# File 'app/models/editable_components/item_datetime.rb', line 10
def self.type_name
'datetime'
end
|
Instance Method Details
#init ⇒ Object
5
6
7
8
|
# File 'app/models/editable_components/item_datetime.rb', line 5
def init
self.data = Time.now
self
end
|