public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/courtenay/engines.git
It looks like view paths need to be 'processed' before they can be used. 
The new ActionView::TemplateFinder class is nice, but doesn't let us 
aribtrarily insert parts just before the default path, so we cant use 
append/prepend_view_path at the moment.

git-svn-id: http://svn.rails-engines.org/engines/trunk@683 
61cc408d-6c04-0410-aff7-b3608aa29ce9
lazyatom (author)
Sun Apr 13 06:46:59 -0700 2008
commit  8aaef7e81bf96a15e5e4f624eeb7b14601887c89
tree    81ca63329089b2345edbdda8dd3cfdee94604304
parent  652701c328abd25697cb17cee7f29dd22f0c077f
...
89
90
91
 
92
93
94
...
89
90
91
92
93
94
95
0
@@ -89,6 +89,7 @@ module Engines
0
       view_path = File.join(directory, 'app', 'views')
0
       if File.exist?(view_path)
0
         ActionController::Base.view_paths.insert(1, view_path) # push it just underneath the app
0
+ ActionView::TemplateFinder.process_view_paths(view_path)
0
       end
0
     end
0
 

Comments

    No one has commented yet.