lib/merit/rules_rank.rb
# Grant rank if rule applies
# Badge checks if it's rank is greater than sash's current one.
Grant rank if rule applies
Badge checks if it's rank is greater than sash's current one.
Grant rank if rule applies Badge checks if it ' s rank is greater than sash ' s current one .
def grant_rank(rule, target_object)
      if rule.applies? target_object
        rule.badge.grant_rank_to target_object.sash
      end
    end
def grant_rank ( rule , target_object ) if rule . applies? target_object rule . badge . grant_rank_to target_object . sash end end
Grant rank if rule applies
Badge checks if it's rank is greater than sash's current one.
Grant rank if rule applies Badge checks if it ' s rank is greater than sash ' s current one .
rule
<not_specific>
target_object
<not_specific>