This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-15 10:56:29 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-05 10:20:05 -04:00
|
|
|
class TagsController < ApplicationController
|
2016-11-05 12:44:14 -04:00
|
|
|
layout 'public'
|
|
|
|
|
2016-11-05 10:20:05 -04:00
|
|
|
def show
|
2016-12-04 10:56:45 -05:00
|
|
|
@tag = Tag.find_by!(name: params[:id].downcase)
|
|
|
|
@statuses = @tag.statuses.order('id desc').paginate_by_max_id(20, params[:max_id])
|
|
|
|
@statuses = cache_collection(@statuses, Status)
|
2016-11-05 10:20:05 -04:00
|
|
|
end
|
|
|
|
end
|