completeness-fu
completeness-fu copied to clipboard
multiple models
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?
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
in my profile model i have has_many :technologies ,so how can i implement this to technologies?