Commit 74e8164972243748069aedec623e1755b3d05b6e
1 parent
1bd0b110
Exists in
send_email_to_admins
and in
5 other branches
plugins: Load extensions in subdirectories
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/plugin.rb
| ... | ... | @@ -149,7 +149,7 @@ class Noosfero::Plugin |
| 149 | 149 | |
| 150 | 150 | def load_plugin_extensions(dir) |
| 151 | 151 | ActionDispatch::Reloader.to_prepare do |
| 152 | - Dir[File.join(dir, 'lib', 'ext', '*.rb')].each{ |file| require_dependency file } | |
| 152 | + Dir[File.join(dir, 'lib', 'ext', '**', '*.rb')].each{ |file| require_dependency file } | |
| 153 | 153 | end |
| 154 | 154 | end |
| 155 | 155 | ... | ... |