Sha256: 0ed040c92b41ecc68467e361f2b2fad51a451f27505bce43979ce693fb3cff4d

Contents?: true

Size: 420 Bytes

Versions: 13

Compression:

Stored size: 420 Bytes

Contents

require_dependency "ishapi/application_controller"

module Ishapi
  class CitiesController < ApplicationController

    def index
      authorize! :index, City
      @cities = City.all
    end

    def features
      authorize! :index, City
      @cities = City.where( :is_feature => true )
    end

    def show
      @city = City.find_by :cityname => params[:cityname]
      authorize! :show, @city
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ishapi-0.1.8.83 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.80 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.79 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.78 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.77 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.76 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.75 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.74 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.73 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.72 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.71 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.70 app/controllers/ishapi/cities_controller.rb
ishapi-0.1.8.69 app/controllers/ishapi/cities_controller.rb