From 92d5455d9413641df8a6ad3fecbf7a3667ce53c4 Mon Sep 17 00:00:00 2001 From: Andrew Hooker Date: Sat, 19 May 2012 20:46:03 -0500 Subject: Using Standard Refinery Deprecation Method --- app/models/refinery/blog/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb index 3e3d85c..d134e87 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -58,7 +58,7 @@ module Refinery end def by_archive(date) - warn "[Deprecation Warning] Refinery::Blog::Post.by_archive(date) has been replaced with by_month" + Refinery.deprecate("Refinery::Blog::Post.by_archive(date)", {:replacement => "Refinery::Blog::Post.by_month(date)"}) by_month(date) end -- cgit v1.2.3