Sha256: be4fd47470b1fe8517636d72a6900c7cce3921ddd4c2d09eca7982557beeaeb3

Contents?: true

Size: 424 Bytes

Versions: 10

Compression:

Stored size: 424 Bytes

Contents

module Geopolitical
  # Hoods Main Public Interface
  class HoodsController < GeopoliticalController
    # belongs_to :city
    # respond_to :html, :xml, :json
    before_filter :load_relatives, only: [:new, :edit, :create, :update]

    def collection
      @hoods = Hood.ordered.page(params[:page])
    end

    private

    def load_relatives
      @cities = City.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/hoods_controller.rb
geopolitical-1.0.5 app/controllers/geopolitical/hoods_controller.rb
geopolitical-1.0.3 app/controllers/geopolitical/hoods_controller.rb
geopolitical-1.0.2 app/controllers/geopolitical/hoods_controller.rb
geopolitical-1.0.0 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.9.9 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.9.7 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.9.5 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.9.3 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.9.1 app/controllers/geopolitical/hoods_controller.rb