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
Does this support making an aggregate score based on multiple models?
eg. a person may have many addresses, pictures, jobs etc. each of which is a separate AR model
perhaps it could be checked using the symbols which links to another method?
The text was updated successfully, but these errors were encountered:
I've managed to implement this with:
check :groups, lambda {|p| !p.groups.empty? }
but may I suggest that empty arrays should be interpreted as a fail by default? This will then allow:
check :groups, :groups
which is much nicer
better still, it would be better to have syntax such as
check :has_groups, :has_blah_associations
Sorry, something went wrong.
in my profile model i have has_many :technologies ,so how can i implement this to technologies?
No branches or pull requests
Does this support making an aggregate score based on multiple models?
eg. a person may have many addresses, pictures, jobs etc. each of which is a separate AR model
perhaps it could be checked using the symbols which links to another method?
The text was updated successfully, but these errors were encountered: