Sha256: 5a17c1ed76623d78bd7a5f2da98611bf90111737f62a7f654ca85d118f672d80

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

class RegionsController < ApplicationController
  def index
    @regions = USGeo::Region.not_removed.order(:id)
  end

  def show
    @region = USGeo::Region.find(params[:id])
    @divisions = @region.divisions.order(:id)
    add_breadcrumb(region_id: @region)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
us_geo-2.1.1 explorer_app/app/controllers/regions_controller.rb
us_geo-2.1.0 explorer_app/app/controllers/regions_controller.rb
us_geo-2.0.4 explorer_app/app/controllers/regions_controller.rb
us_geo-2.0.3 explorer_app/app/controllers/regions_controller.rb
us_geo-2.0.2 explorer_app/app/controllers/regions_controller.rb
us_geo-2.0.1 explorer_app/app/controllers/regions_controller.rb
us_geo-2.0.0 explorer_app/app/controllers/regions_controller.rb