Skip to content

Commit

Permalink
Merge pull request DMPRoadmap#2780 from DMPRoadmap/fix-prepend-view-p…
Browse files Browse the repository at this point in the history
…aths

Updated prepend_view_paths to use Rails.root context
  • Loading branch information
briri authored Mar 10, 2021
2 parents e8e1af5 + 4ece5a3 commit 0953ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def obj_name_for_display(obj)
# replacing. For example:
# app/views/branded/layouts/_header.html.erb -> app/views/layouts/_header.html.erb
def prepend_view_paths
prepend_view_path "app/views/branded"
prepend_view_path Rails.root.join("app", "views", "branded")
end

##
Expand Down

0 comments on commit 0953ff5

Please sign in to comment.