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