Files
danbooru/app/controllers/user_events_controller.rb
evazion a7dc05ce63 Enable frozen string literals.
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00

13 lines
383 B
Ruby

# frozen_string_literal: true
class UserEventsController < ApplicationController
respond_to :html, :json, :xml
def index
@user_events = authorize UserEvent.visible(CurrentUser.user).paginated_search(params, count_pages: true)
@user_events = @user_events.includes(:user, user_session: [:ip_geolocation]) if request.format.html?
respond_with(@user_events)
end
end