Commit 74e8164972243748069aedec623e1755b3d05b6e
1 parent
1bd0b110
Exists in
staging
and in
31 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,7 +149,7 @@ class Noosfero::Plugin | ||
149 | 149 | ||
150 | def load_plugin_extensions(dir) | 150 | def load_plugin_extensions(dir) |
151 | ActionDispatch::Reloader.to_prepare do | 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 | end | 153 | end |
154 | end | 154 | end |
155 | 155 |