Commit 60177ce7 authored by Uģis Ozols's avatar Uģis Ozols
Browse files

@date_title ivar is not used anywhere in the code.

parent 58d9841a
......@@ -17,12 +17,10 @@ module Refinery
if params[:month].present?
date = "#{params[:month]}/#{params[:year]}"
@archive_date = Time.parse(date)
@date_title = @archive_date.strftime('%B %Y')
@items = Refinery::News::Item.live.by_archive(@archive_date).page(params[:page])
else
date = "01/#{params[:year]}"
@archive_date = Time.parse(date)
@date_title = @archive_date.strftime('%Y')
@items = Refinery::News::Item.live.by_year(@archive_date).page(params[:page])
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment