public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/thewoolleyman/engines.git
Bugfix related to ExceptionNotifier plugin helper.  base_name was incorrectly 
getting set to entire absolute path.  Change ? to + to ensure that filename is 
indeed under /app.
thewoolleyman (author)
Mon Sep 01 17:55:59 -0700 2008
commit  47e25274335a220aea7f07e2b7b26bae6262411f
tree    fb3b5887ee0107fcd19849169c2e3a14ff0ec740
parent  38037f87f9f2d1ff5fb47ff4d28f4176a63b9a72
...
102
103
104
105
 
106
107
108
...
102
103
104
 
105
106
107
108
0
@@ -102,7 +102,7 @@ module Engines::RailsExtensions::Dependencies
0
       # if we recognise this type
0
       # (this regexp splits out the module/filename from any instances of app/#{type}, so that
0
       #  modules are still respected.)
0
-      if file_name =~ /^(.*app\/#{file_type}s\/)?(.*_#{file_type})(\.rb)?$/
0
+      if file_name =~ /^(.*app\/#{file_type}s\/)+(.*_#{file_type})(\.rb)?$/
0
         base_name = $2
0
         # ... go through the plugins from first started to last, so that
0
         # code with a high precedence (started later) will override lower precedence

Comments

lazyatom Fri Oct 24 04:29:32 -0700 2008