We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date validations are not built in. Maybe a gem, or a concern like this:
def ensure_start_date_before_end_date return unless start_date.present? && end_date.present? return if start_date < end_date errors.add(:base, :start_date_after_end_date) end
Credits to Hayden Ball for that -> https://bitbucket.org/bedlamtheatre/black_lightning/issues/179/validate-end-dates-are-after-start-dates
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Date validations are not built in. Maybe a gem, or a concern like this:
Credits to Hayden Ball for that -> https://bitbucket.org/bedlamtheatre/black_lightning/issues/179/validate-end-dates-are-after-start-dates
The text was updated successfully, but these errors were encountered: