Class: Store::PassesController

Inherits:
StoreController
  • Object
show all
Defined in:
app/controllers/store/passes_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
12
# File 'app/controllers/store/passes_controller.rb', line 8

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

#showObject



2
3
4
5
6
# File 'app/controllers/store/passes_controller.rb', line 2

def show
  @pass_types = [PassType.find(params[:id])]
  @passes_kit = PassesKit.where(:organization_id => store_organization.id).first
  render :index
end