diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-27 18:56:31 +0100 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-01-28 10:28:41 -0800 |
commit | 64ea3dfd9f14b09b65905a10379050ba2f42d8b8 (patch) | |
tree | 5e9c621ae0299a85b641234618c094a1e3964ff0 /railties/lib/rails/plugin.rb | |
parent | d3d487479a6d4a5ba6977fb0075e7937eb19718a (diff) | |
download | rails-64ea3dfd9f14b09b65905a10379050ba2f42d8b8.tar.gz rails-64ea3dfd9f14b09b65905a10379050ba2f42d8b8.tar.bz2 rails-64ea3dfd9f14b09b65905a10379050ba2f42d8b8.zip |
Add reloadable specific for engines and move environment to application paths.
Signed-off-by: Carl Lerche <carllerche@mac.com>
Diffstat (limited to 'railties/lib/rails/plugin.rb')
-rw-r--r-- | railties/lib/rails/plugin.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 4c73809177..881c97f02d 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -54,5 +54,11 @@ module Rails raise "\"#{name}\" is a Railtie/Engine and cannot be installed as plugin" end end + + protected + + def reloadable?(app) + app.config.reload_plugins + end end end |