Sha256: 1b328d45f1c3caef27b92d8224933a0b5a607a49727f88a77f36805a834d173e

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

module Geopolitical
  # Main Regions Controller
  class RegionsController < GeopoliticalController
    before_filter :set_nations, only: [:new, :edit, :create, :update]

    def collection
      @regions = Region.ordered.page(params[:page])
    end

    private

    def set_nations
      @nations = Nation.all.map { |n| [n.name, n.id] }
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
geopolitical-2.0.0 app/controllers/geopolitical/regions_controller.rb
geopolitical-1.0.5 app/controllers/geopolitical/regions_controller.rb
geopolitical-1.0.3 app/controllers/geopolitical/regions_controller.rb
geopolitical-1.0.2 app/controllers/geopolitical/regions_controller.rb
geopolitical-1.0.0 app/controllers/geopolitical/regions_controller.rb
geopolitical-0.9.9 app/controllers/geopolitical/regions_controller.rb
geopolitical-0.9.7 app/controllers/geopolitical/regions_controller.rb
geopolitical-0.9.5 app/controllers/geopolitical/regions_controller.rb
geopolitical-0.9.3 app/controllers/geopolitical/regions_controller.rb
geopolitical-0.9.1 app/controllers/geopolitical/regions_controller.rb