Sha256: 7e3181c569db00ad829e17c019a19fd85a1af86a2e775316ab56944277082322
Contents?: true
Size: 314 Bytes
Versions: 49
Compression:
Stored size: 314 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
49 entries across 49 versions & 1 rubygems