Class: Workarea::Search::StorefrontSearch::Redirect

Inherits:
Object
  • Object
show all
Includes:
Middleware
Defined in:
app/queries/workarea/search/storefront_search/redirect.rb

Instance Method Summary collapse

Methods included from Middleware

#initialize

Instance Method Details

#call(response) ⇒ Object



7
8
9
10
11
12
13
# File 'app/queries/workarea/search/storefront_search/redirect.rb', line 7

def call(response)
  if customization.redirect?
    response.redirect = customization.redirect
  else
    yield
  end
end