Sha256: 45adfebbfb1bfaf41c3e73cc76fc25b794c1f297c6cb18a37157a99da4398217
Contents?: true
Size: 315 Bytes
Versions: 11
Compression:
Stored size: 315 Bytes
Contents
require_dependency "ishapi/application_controller" module Ishapi class CitiesController < ApplicationController def index authorize! :index, City @cities = City.all end def show @city = City.find_by :cityname => params[:cityname] authorize! :show, @city end end end
Version data entries
11 entries across 11 versions & 1 rubygems