Class: Ecom::Core::LookaheadPlanTaskProgress
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Ecom::Core::LookaheadPlanTaskProgress
- Defined in:
- app/models/ecom/core/lookahead_plan_task_progress.rb
Instance Method Summary collapse
Instance Method Details
#date_range_validator ⇒ Object
15 16 17 18 19 |
# File 'app/models/ecom/core/lookahead_plan_task_progress.rb', line 15 def date_range_validator return unless started_on && ended_on && started_on > ended_on errors.add(:base, 'Ended on cannot be before started on') end |