Sha256: b21d3339fb5fabd6c68d2e8873778189ce4b0b3ca774ba4d9900107a7dae7306

Contents?: true

Size: 502 Bytes

Versions: 7

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

class CountiesController < ApplicationController
  before_action :set_breadcrumbs

  def show
    @county = USGeo::County.find(params[:id])
    add_breadcrumb(county_id: @county)
  end

  private

  def set_breadcrumbs
    add_region_breadcrumb
    add_division_breadcrumb
    add_state_breadcrumb
    add_combined_statistical_area_breadcrumb
    add_core_based_statistical_area_breadcrumb
    add_metropolitan_division_breadcrumb
    add_urban_area_breadcrumb
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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