From c3d5314aa3209c021fb280f2dc4e49e0846af64a Mon Sep 17 00:00:00 2001 From: geemus Date: Sun, 25 Apr 2010 11:26:48 -0700 Subject: [PATCH] pass args through deprecate --- lib/fog/deprecation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/deprecation.rb b/lib/fog/deprecation.rb index 16f4d9885..b7ad3125a 100644 --- a/lib/fog/deprecation.rb +++ b/lib/fog/deprecation.rb @@ -3,9 +3,9 @@ module Fog def deprecate(older, newer) class_eval <<-EOS, __FILE__, __LINE__ - def #{older} + def #{older}(*args) Formatador.display_line("[yellow][WARN] fog: #{older} is deprecated, use #{newer} instead[/]") - #{newer} + #{newer}(*args) end EOS end