Class: Spree::ContentController

Inherits:
StoreController show all
Defined in:
app/controllers/spree/content_controller.rb

Instance Method Summary collapse

Methods inherited from StoreController

#cart_link, #forbidden, #unauthorized

Instance Method Details

#cvvObject



35
36
37
# File 'app/controllers/spree/content_controller.rb', line 35

def cvv
  render layout: false
end

#fire_visited_pathObject



39
40
41
# File 'app/controllers/spree/content_controller.rb', line 39

def fire_visited_path
  Spree::PromotionHandler::Page.new(current_order, params[:path]).activate
end

#showObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/controllers/spree/content_controller.rb', line 11

def show
  ActiveSupport::Deprecation.warn("ContentController#show is deprecated and will be removed in Spree 3.5\nPlease don't use dynamic render paths and just declare your actions in\nContentController decorator, eg.\n\nroutes.rb:\nget '/content/custom_page', to: 'content#custom_page', as: :custom_page\n\ncontrollers/spree/content_controller_decorator.rb:\nSpree::ContentController.class_eval do\ndef custom_page\nend\nend\n\nchange links from:\nspree.content_path('custom_page')\n\nto:\nspree.custom_page\n", caller)
  render action: params[:path]
end