Skip to content

Commit d286e1d

Browse files
committed
extending contributors-controller
1 parent 8323ea4 commit d286e1d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
module Nova
22
class ApplicationController < ActionController::Base
3-
before_action :prefer_engine_views
43

5-
private
6-
7-
def prefer_engine_views
8-
prepend_view_path Nova::Engine.root.join("app/views")
9-
end
104
end
115
end
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module Nova
2+
3+
class ContributorsController < ::ContributorsController
4+
before_action :prefer_engine_views
5+
6+
private
7+
8+
def prefer_engine_views
9+
prepend_view_path Nova::Engine.root.join("app/views")
10+
end
11+
end
12+
end

0 commit comments

Comments
 (0)