Sha256: e78636face74737ec2c287c63d192f283c07f1b736455672af5e56e632a4c128
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
module Geopolitical class CitiesController < GeopoliticalController # allow "admin" inherit_resources before_filter :load_relatives, :only => [:new, :edit, :create, :update] def collection @cities = City.ordered.search(params[:search]).page(params[:page]) # @cc.nation.cities end private def load_marker end def load_map end def load_relatives @regions = Region.only(:name).map {|e| [e.name,e.id]} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geopolitical-0.8.1 | app/controllers/geopolitical/cities_controller.rb |
geopolitical-0.8.0 | app/controllers/geopolitical/cities_controller.rb |