Sha256: e3fee1d5ecb4d9b584813a703fc43974a3a28911e6cde1f8a35bef17be546339
Contents?: true
Size: 480 Bytes
Versions: 8
Compression:
Stored size: 480 Bytes
Contents
class Store::PassesController < Store::StoreController def show @pass_types = [PassType.find(params[:id])] @passes_kit = PassesKit.where(:organization_id => store_organization.id).first render :index end def index render :nothing => true unless store_organization.can? :access, :passes @pass_types = store_organization.pass_types.storefront.order('price desc') @passes_kit = PassesKit.where(:organization_id => store_organization.id).first end end
Version data entries
8 entries across 8 versions & 1 rubygems