Skip to content

Commit

Permalink
Use relative path to specify layouts path
Browse files Browse the repository at this point in the history
Using an absolute path has been deprecated in Rails 6 with
rails/rails#35793.
  • Loading branch information
kennyadsl committed Sep 16, 2019
1 parent bb75082 commit 460269d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/controllers/spree/admin/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Spree
module Admin
class BaseController < Spree::BaseController
helper 'spree/admin/navigation'
layout '/spree/layouts/admin'
layout 'spree/layouts/admin'

before_action :authorize_admin

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Spree
module Admin
class StyleGuideController < Spree::Admin::BaseController
respond_to :html
layout '/spree/layouts/admin_style_guide'
layout 'spree/layouts/admin_style_guide'

def index
@topics = {
Expand Down

0 comments on commit 460269d

Please sign in to comment.