Class: Spree::StoreController

Inherits:
BaseController
  • Object
show all
Includes:
Core::ControllerHelpers::Order
Defined in:
app/controllers/spree/store_controller.rb

Instance Method Summary collapse

Instance Method Details



15
16
17
18
# File 'app/controllers/spree/store_controller.rb', line 15

def cart_link
  render partial: 'spree/shared/link_to_cart'
  fresh_when(simple_current_order)
end

#forbiddenObject



7
8
9
# File 'app/controllers/spree/store_controller.rb', line 7

def forbidden
  render 'spree/shared/forbidden', layout: Spree::Config[:layout], status: 403
end

#unauthorizedObject



11
12
13
# File 'app/controllers/spree/store_controller.rb', line 11

def unauthorized
  render 'spree/shared/unauthorized', layout: Spree::Config[:layout], status: 401
end