app/controllers/groups_controller.rb
# Loads all years. Loads the last selected year
Loads all years. Loads the last selected year
Loads all years . Loads the last selected year
def load_all_years
      @all_years = FiscalYear.order(:year)
      @year = FiscalYear.find_by_year(cookies[:year])
      @year = @current_fiscal_year if @year.blank?
    end
def load_all_years @all_years = FiscalYear . order ( :year ) @year = FiscalYear . find_by_year ( cookies [ :year ] ) @year = @current_fiscal_year if @year . blank? end
Loads all years.
Loads all years .