public
Clone URL: git://github.com/nmerouze/action_presenter.git
Remove Engines dependency
Nicolas Mérouze (author)
Mon May 19 00:48:49 -0700 2008
commit  f9582b5c4d15f97236698bf1c331840a0c637826
tree    aef2fbcd931f68400c73074172c2ab9a5078daba
parent  fd1def3f0b56db6bb8ce4d3c40f1819f704dbdae
...
 
0
...
1
2
0
@@ -0,0 +1 @@
0
+* Remove Engines dependency
0
\ No newline at end of file
...
1
2
3
4
5
 
 
 
6
7
8
9
 
 
 
 
10
11
12
13
...
1
2
3
 
 
4
5
6
7
 
 
 
8
9
10
11
12
13
14
15
0
@@ -1,12 +1,14 @@
0
 Dependencies.load_paths << Rails.root + '/app/presenters'
0
 
0
 config.after_initialize do
0
- Rails.plugins.each do |plugin|
0
- path = Rails.root + "/vendor/plugins/#{plugin.name}/app/presenters"
0
+ if defined? :Engines
0
+ Rails.plugins.each do |plugin|
0
+ path = Rails.root + "/vendor/plugins/#{plugin.name}/app/presenters"
0
     
0
- if File.directory?(path)
0
- Dependencies.load_paths << path
0
- ActionPresenter.view_paths << path
0
+ if File.directory?(path)
0
+ Dependencies.load_paths << path
0
+ ActionPresenter.view_paths << path
0
+ end
0
     end
0
   end
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.