diff options
author | Matthew Rudy Jacobs <matthewrudyjacobs@gmail.com> | 2009-02-22 19:23:04 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-02-27 14:37:11 +0100 |
commit | 319106d09c0ec2daf8b5345f525f1c97b6368ce2 (patch) | |
tree | 55bbda458e3428bffcad2fa591f02c2ba961fbff /railties/lib/rails/plugin.rb | |
parent | 6de83562f91028629bd24447aa521bc72ef8277a (diff) | |
download | rails-319106d09c0ec2daf8b5345f525f1c97b6368ce2.tar.gz rails-319106d09c0ec2daf8b5345f525f1c97b6368ce2.tar.bz2 rails-319106d09c0ec2daf8b5345f525f1c97b6368ce2.zip |
Metal can now line in plugins under app/metal [#2045 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'railties/lib/rails/plugin.rb')
-rw-r--r-- | railties/lib/rails/plugin.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 4901abe808..80deb73bbb 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -80,6 +80,10 @@ module Rails File.join(directory, 'app', 'controllers') end + def metal_path + File.join(directory, 'app', 'metal') + end + def routing_file File.join(directory, 'config', 'routes.rb') end @@ -100,7 +104,7 @@ module Rails def app_paths - [ File.join(directory, 'app', 'models'), File.join(directory, 'app', 'helpers'), controller_path ] + [ File.join(directory, 'app', 'models'), File.join(directory, 'app', 'helpers'), controller_path, metal_path ] end def lib_path @@ -160,4 +164,4 @@ module Rails File.join(directory, 'rails', 'init.rb') end end -end
\ No newline at end of file +end |