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

Version Path
artfully_ose-1.2.0 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.beta.1 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.alpha.2 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.alpha.1 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.pre.27 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.pre.26 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.pre.24 app/controllers/store/passes_controller.rb
artfully_ose-1.2.0.pre.23 app/controllers/store/passes_controller.rb