class RegionController < ApplicationController
  before_filter :load_vars

  def show
  end

  private

  def load_vars
    @region = Region.where(iso: params[:iso].upcase).first
    @region or raise_404
    @presenter = RegionPresenter.new @region
    @designations_by_jurisdiction = @region.designations.group_by { |design|
      design.jurisdiction.name rescue "Not Reported"
    }
  end

end

class RegionController < ApplicationController
  before_filter :load_vars

  def show
  end

  private

  def load_vars
    params[:iso]!="GL" or raise_404
    @region = Region.where(iso: params[:iso].upcase).first
    @region or raise_404
    @presenter = RegionPresenter.new @region
    @designations_by_jurisdiction = @region.designations.group_by { |design|
      design.jurisdiction.name rescue "Not Reported"
    }
  end

end

Revert commit to restore raise_404 if region ISO is GL
Revert commit to restore raise_404 if region ISO is GL
