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

Version Path
geopolitical-2.0.0 app/controllers/geopolitical/cities_controller.rb
geopolitical-1.0.5 app/controllers/geopolitical/cities_controller.rb
geopolitical-1.0.3 app/controllers/geopolitical/cities_controller.rb
geopolitical-1.0.2 app/controllers/geopolitical/cities_controller.rb
geopolitical-1.0.0 app/controllers/geopolitical/cities_controller.rb
geopolitical-0.9.9 app/controllers/geopolitical/cities_controller.rb
geopolitical-0.9.7 app/controllers/geopolitical/cities_controller.rb
geopolitical-0.9.5 app/controllers/geopolitical/cities_controller.rb
geopolitical-0.9.3 app/controllers/geopolitical/cities_controller.rb
geopolitical-0.9.1 app/controllers/geopolitical/cities_controller.rb