Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Add preprend view path based on current_store.code #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/controllers/spree/base_controller_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Spree::BaseController.class_eval do

before_action { prepend_view_path "app/views/#{current_store.code}" }

end