Ruby Control Structures - Unless

  • + 0 comments
    def scoring(array)
      array.each do |user|
          user.update_score unless user.is_admin?
      end
    end