Skip to content

Commit e388d22

Browse files
committed
updated nova engine to prepend engine views to host app's views
1 parent d286e1d commit e388d22

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

app/controllers/nova/contributors_controller.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

lib/nova/engine.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
module Nova
22
class Engine < ::Rails::Engine
33
isolate_namespace Nova
4+
5+
initializer "nova.prepend_view_paths" do
6+
ActiveSupport.on_load(:action_controller) do
7+
prepend_view_path Nova::Engine.root.join("app/views")
8+
end
9+
end
410
end
511
end

0 commit comments

Comments
 (0)