# === COPYRIGHT:
# Copyright (c) Jason Adam Young
# === LICENSE:
# see LICENSE file

class Draft::TeamsController < Draft::BaseController

    def index
      @teams = Team.all
    end

    def show
      @team = Team.find(params[:id])
      @batters = DraftBatter.byrankingvalue(@brv).byteam(@team).order('position,last_name')
      @pitchers = DraftPitcher.byrankingvalue(@prv).byteam(@team).order('position,last_name')
    end

end
