Sha256: 8cd53a68b85878389e9846839461ebe7cf014ef9778ea1efe1fffd87979b3b0b

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

module Geopolitical
  class RegionsController < GeopoliticalController
    inherit_resources
    before_filter :get_relatives, :only => [:new, :edit]

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

    private

    def get_relatives
      @nations = Nation.all
    end

  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
geopolitical-0.8.0 app/controllers/geopolitical/regions_controller.rb
geopolitical-0.8.0 app/controllers/zones_controller.rb