app/controllers/groups_controller.rb
# Loads all employees for the given year
Loads all employees for the given year
Loads all employees for the given year
def load_employees_for_year
      @employees = @group.employees.joins(:employee_allocations).where(
          "employee_allocations.fiscal_year_id = ?",  @year.id).uniq.includes(
          :employee_allocations).order(:last_name, :first_name).paginate(:page =>   
          params[:employees_page], :per_page => session[:results_per_page])
    end
def load_employees_for_year @employees = @group . employees . joins ( :employee_allocations ) . where ( "employee_allocations.fiscal_year_id = ?" , @year . id ) . uniq . includes ( :employee_allocations ) . order ( :last_name , :first_name ) . paginate ( :page => params [ :employees_page ] , :per_page => session [ :results_per_page ] ) end
Loads all employees for the given year
Loads all employees for the given year