diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-06 17:18:59 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-06 17:20:15 +0200 |
commit | d649bf158be130515566aed987f83d36ac9b0ae8 (patch) | |
tree | 4d056bbc2d84903dbf6931e0ee6aa6ded01094cd /railties/lib/rails/tasks | |
parent | d40ca9cce241a8083756c993d6c99a79e62e050e (diff) | |
download | rails-d649bf158be130515566aed987f83d36ac9b0ae8.tar.gz rails-d649bf158be130515566aed987f83d36ac9b0ae8.tar.bz2 rails-d649bf158be130515566aed987f83d36ac9b0ae8.zip |
Provide a cleaner syntax for paths configuration that does not rely on method_missing.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/railties.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/railties.rake b/railties/lib/rails/tasks/railties.rake index 7cf31f84a0..0c1ee0f17a 100644 --- a/railties/lib/rails/tasks/railties.rake +++ b/railties/lib/rails/tasks/railties.rake @@ -2,7 +2,7 @@ namespace :railties do desc "Create symlinks to railties public directories in application's public directory." task :create_symlinks => :environment do paths = Rails.application.config.static_asset_paths.dup - app_public_path = Rails.application.config.paths.public.to_a.first + app_public_path = Rails.application.paths["public"].first paths.each do |mount_path, path| symlink_path = File.join(app_public_path, mount_path) |