Sha256: f2a4a4f9a1c4e998fb700ad0fe22e87502a87157cdaee770a422686d9ab8945f

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

module Geopolitical
  # Hoods Main Public Interface
  class HoodsController < GeopoliticalController
    inherit_resources
    # 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

4 entries across 4 versions & 1 rubygems

Version Path
geopolitical-0.8.8 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.8.7 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.8.6 app/controllers/geopolitical/hoods_controller.rb
geopolitical-0.8.4 app/controllers/geopolitical/hoods_controller.rb