Renaming Method to better describe use, Including Deprecation Warning on Old Method

This commit is contained in:
Andrew Hooker 2012-05-19 20:00:16 -05:00
parent 6fa5bbdf33
commit 86fa2d2f5d
3 changed files with 11 additions and 6 deletions

View file

@ -60,7 +60,7 @@ module Refinery
date = "#{params[:month]}/#{params[:year]}"
@archive_date = Time.parse(date)
@date_title = @archive_date.strftime('%B %Y')
@posts = Post.live.by_archive(@archive_date).page(params[:page])
@posts = Post.live.by_month(@archive_date).page(params[:page])
else
date = "01/#{params[:year]}"
@archive_date = Time.parse(date)