Sha256: 244299de9dbeb2aa49154c0c745485d07c9edaaf8dbab5ae1b4d4aed4f3415a5
Contents?: true
Size: 467 Bytes
Versions: 10
Compression:
Stored size: 467 Bytes
Contents
module Geopolitical # Cities Public Controller class CitiesController < GeopoliticalController # allow "admin" before_filter :load_relatives, only: [:new, :edit, :create, :update] def collection @cities = City.ordered.search(params[:search]).page(params[:page]) 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
10 entries across 10 versions & 1 rubygems