2014-12-10 21:39:35 -08:00
|
|
|
class PublicController < ApplicationController
|
2020-04-18 16:45:50 -07:00
|
|
|
before_action :authenticate_user!
|
2014-12-12 08:54:13 -08:00
|
|
|
|
2014-12-10 21:39:35 -08:00
|
|
|
def index
|
2015-01-03 13:30:40 -08:00
|
|
|
@timeline = Answer.joins(:user).where(users: { privacy_allow_public_timeline: true }).all.reverse_order.paginate(page: params[:page])
|
2014-12-10 21:39:35 -08:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.js
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|