2 class FeedsController < ApplicationController
3 before_action :authorize_web
4 before_action :set_locale
5 before_action :check_database_readable
7 authorize_resource :class => Trace
10 @traces = Trace.visible_to_all.visible
12 @traces = @traces.joins(:user).where(:users => { :display_name => params[:display_name] }) if params[:display_name]
14 @traces = @traces.tagged(params[:tag]) if params[:tag]
15 @traces = @traces.order("timestamp DESC")
16 @traces = @traces.limit(20)
17 @traces = @traces.includes(:user)