Class: VCFB::Component::DatetimeField
- Defined in:
- lib/vcfb/component/datetime_field.rb
Instance Method Summary collapse
- #form_element(options = {}) ⇒ Object
-
#initialize(form, method, options = {}) ⇒ DatetimeField
constructor
A new instance of DatetimeField.
Methods inherited from Base
#collection_check_boxes, #collection_radio_buttons
Constructor Details
#initialize(form, method, options = {}) ⇒ DatetimeField
Returns a new instance of DatetimeField.
4 5 6 7 8 9 10 |
# File 'lib/vcfb/component/datetime_field.rb', line 4 def initialize(form, method, = {}) run_callbacks :initialize do @form = form @method = method = defined?(TagOptions::Hash) ? TagOptions::Hash.new() : end end |
Instance Method Details
#form_element(options = {}) ⇒ Object
12 13 14 |
# File 'lib/vcfb/component/datetime_field.rb', line 12 def form_element( = {}) datetime_field(@form.object_name, @method, ) end |