Sha256: a4323f454223c1eea4b59e646d760cf3d63850089a7018f4d3e4b7b95ea3c6f2

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

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

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

    private

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geopolitical-0.8.1 app/controllers/geopolitical/regions_controller.rb