diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-13 23:14:36 +0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-14 07:46:12 +0200 |
commit | 72545da09146ea84506b6e4a023df2453f137fa7 (patch) | |
tree | 899ea9deff4d0f85b4904776f5f37fe3de9c4c31 /railties/lib/rails/tasks | |
parent | a2c52f100446ab328cbde0e505216a99c602bc57 (diff) | |
download | rails-72545da09146ea84506b6e4a023df2453f137fa7.tar.gz rails-72545da09146ea84506b6e4a023df2453f137fa7.tar.bz2 rails-72545da09146ea84506b6e4a023df2453f137fa7.zip |
Remove task for creating symlinks for railties
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/railties.rake | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/railties/lib/rails/tasks/railties.rake b/railties/lib/rails/tasks/railties.rake index 23d81e6671..77cf2b7707 100644 --- a/railties/lib/rails/tasks/railties.rake +++ b/railties/lib/rails/tasks/railties.rake @@ -1,23 +1,4 @@ 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.paths["public"].first - - paths.each do |mount_path, path| - symlink_path = File.join(app_public_path, mount_path) - if File.exist?(symlink_path) - File.symlink?(symlink_path) ? FileUtils.rm(symlink_path) : next - end - - next unless File.exist?(path) - - File.symlink(path, symlink_path) - - puts "Created symlink #{symlink_path} -> #{path}" - end - end - namespace :install do desc "Copies missing assets from Railties (e.g. plugins, engines). You can specify Railties to use with FROM=railtie1,railtie2" task :assets => :rails_env do |