Renaming Method to better describe use, Including Deprecation Warning on Old Method
This commit is contained in:
parent
6fa5bbdf33
commit
86fa2d2f5d
3 changed files with 11 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue