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