Commit 27fca1f
committed
Add support for packs and internal engines
When using packs or internal engines, the template paths may not be
nested directly under the Rails root `app/views` directory.
For example, the default for packs-rails is to use a `packs` directory
under the Rails root, so the layout could be in a directory like
`#{Rails.root}/packs/pack_name/app/views`.
Since the view paths are registere with
`ActionController::Base.view_paths`, we can use that collection to
clearly identify local templates1 parent 89296bf commit 27fca1f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments