lib/merit/rules_rank.rb
# Check rules defined for a merit_action
Check rules defined for a merit_action
Check rules defined for a merit_action
def check_rank_rules
      defined_rules.each do |scoped_model, rankings| 
        rankings.each do |ranking, rules| 's ranking (stars, etc)
          rules.each do |rule|            
            scoped_model.all.each {|obj| grant_rank(rule, obj) }
          end
        end
      end
    end
def check_rank_rules defined_rules . each do | scoped_model , rankings | rankings . each do | ranking , rules | rules . each do | rule | scoped_model . all . each { | obj | grant_rank ( rule , obj ) } end end end end
Check rules defined for a merit_action
Check rules defined for a merit_action
# For each model # For each model's ranking (stars, etc) # For each ranking's rule (level)