Class: Admin::DatetimeComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Admin::DatetimeComponent
- Defined in:
- lib/generators/infold/templates/install/app/components/admin/datetime_component.rb
Instance Method Summary collapse
-
#initialize(form, field) ⇒ DatetimeComponent
constructor
A new instance of DatetimeComponent.
Constructor Details
#initialize(form, field) ⇒ DatetimeComponent
Returns a new instance of DatetimeComponent.
5 6 7 8 |
# File 'lib/generators/infold/templates/install/app/components/admin/datetime_component.rb', line 5 def initialize(form, field) @form = form @field = field end |