Commit c23f40dad03d70274b814548f63fce9ef3b44017
1 parent
1ccb62af
Exists in
staging
and in
42 other branches
Removed whitespaces
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/noosfero/plugin/routes.rb
@@ -2,8 +2,8 @@ plugins_root = Rails.env.test? ? 'plugins' : File.join('config', 'plugins') | @@ -2,8 +2,8 @@ plugins_root = Rails.env.test? ? 'plugins' : File.join('config', 'plugins') | ||
2 | 2 | ||
3 | Dir.glob(File.join(Rails.root, plugins_root, '*', 'controllers')) do |controllers_dir| | 3 | Dir.glob(File.join(Rails.root, plugins_root, '*', 'controllers')) do |controllers_dir| |
4 | prefixes_by_folder = {'public' => 'plugin', | 4 | prefixes_by_folder = {'public' => 'plugin', |
5 | - 'profile' => 'profile/:profile/plugin', | ||
6 | - 'myprofile' => 'myprofile/:profile/plugin', | 5 | + 'profile' => 'profile/:profile/plugin', |
6 | + 'myprofile' => 'myprofile/:profile/plugin', | ||
7 | 'admin' => 'admin/plugin'} | 7 | 'admin' => 'admin/plugin'} |
8 | 8 | ||
9 | controllers_by_folder = prefixes_by_folder.keys.inject({}) do |hash, folder| | 9 | controllers_by_folder = prefixes_by_folder.keys.inject({}) do |hash, folder| |