From b955939d55b71905fa3e5036149ee4c84943c599 Mon Sep 17 00:00:00 2001 From: Alexey Gaziev Date: Tue, 30 Oct 2012 10:23:41 +0800 Subject: Make caller attribute in deprecation methods optional --- activerecord/lib/active_record/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/migration.rb') diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index fcadd4767d..5499f37802 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -733,7 +733,7 @@ module ActiveRecord if block_given? message = "block argument to migrate is deprecated, please filter migrations before constructing the migrator" - ActiveSupport::Deprecation.warn(message, caller) + ActiveSupport::Deprecation.warn message running.select! { |m| yield m } end -- cgit v1.2.3