Commit e63fb6cd9c6fddd46bfe543e42f73317ae565801
1 parent
70ea067a
Exists in
master
and in
29 other branches
Get the path to the plugins routes file directly
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/routes.rb
@@ -115,7 +115,7 @@ ActionController::Routing::Routes.draw do |map| | @@ -115,7 +115,7 @@ ActionController::Routing::Routes.draw do |map| | ||
115 | ###################################################### | 115 | ###################################################### |
116 | # plugin routes | 116 | # plugin routes |
117 | ###################################################### | 117 | ###################################################### |
118 | - plugins_routes = File.join(Rails.root + '/lib/noosfero/plugin/routes.rb') | 118 | + plugins_routes = File.join(File.dirname(__FILE__) + '/../lib/noosfero/plugin/routes.rb') |
119 | eval(IO.read(plugins_routes), binding, plugins_routes) | 119 | eval(IO.read(plugins_routes), binding, plugins_routes) |
120 | 120 | ||
121 | # cache stuff - hack | 121 | # cache stuff - hack |