Module: SpreeMultiDomain::ShowProductSupport::InstanceMethods
- Defined in:
- app/controllers/concerns/spree_multi_domain/show_product_support.rb
Instance Method Summary collapse
Instance Method Details
#can_show_product ⇒ Object
10 11 12 13 14 15 |
# File 'app/controllers/concerns/spree_multi_domain/show_product_support.rb', line 10 def can_show_product @product ||= Spree::Product.friendly.find(params[:id]) if @product.stores.empty? || !@product.stores.include?(current_store) raise ActiveRecord::RecordNotFound end end |