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
PR #8 Covers this TODO with the following method (/models/shift.rb):
def sites_available_gt_0 return true if sites_available? && sites_available >= 0 errors.add(:shift, I18n.t("sites_available_under_0", scope: SCOPE)) false end
Is this ok? @sergio-ocon @alexvkcr @delaluzparra
The text was updated successfully, but these errors were encountered:
Yes
Sorry, something went wrong.
Altough as you have a shift element you are testing against, you should use shift.errors.add
No branches or pull requests
PR #8 Covers this TODO with the following method (/models/shift.rb):
def sites_available_gt_0
return true if sites_available? && sites_available >= 0
errors.add(:shift, I18n.t("sites_available_under_0", scope: SCOPE))
false
end
Is this ok?
@sergio-ocon @alexvkcr @delaluzparra
The text was updated successfully, but these errors were encountered: