aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties/databases.rake
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-29 09:04:47 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-29 09:04:47 -0200
commit390449ab8c55dacc08517bc270c6203bb1f50e02 (patch)
treee87455ea620155254511180cc1f08c5544ed195c /activerecord/lib/active_record/railties/databases.rake
parent56e47cf66d2e3009b4032d0cd2ceb1a6e5e42573 (diff)
parentd1374f99bf3090f3e659687c112ed0c5c0865cfb (diff)
downloadrails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.gz
rails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.bz2
rails-390449ab8c55dacc08517bc270c6203bb1f50e02.zip
Merge pull request #16833 from sferik/symbol_to_proc
Pass symbol as an argument instead of a block
Diffstat (limited to 'activerecord/lib/active_record/railties/databases.rake')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 21b1c3f721..6c09456c4d 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -366,7 +366,7 @@ namespace :railties do
namespace :install do
# desc "Copies missing migrations from Railties (e.g. engines). You can specify Railties to use with FROM=railtie1,railtie2"
task :migrations => :'db:load_config' do
- to_load = ENV['FROM'].blank? ? :all : ENV['FROM'].split(",").map {|n| n.strip }
+ to_load = ENV['FROM'].blank? ? :all : ENV['FROM'].split(",").map(&:strip)
railties = {}
Rails.application.migration_railties.each do |railtie|
next unless to_load == :all || to_load.include?(railtie.railtie_name)