mastodon/app/controllers/settings/login_activities_controller.rb

11 lines
309 B
Ruby
Raw Normal View History

2021-06-21 17:07:30 +02:00
# frozen_string_literal: true
class Settings::LoginActivitiesController < Settings::BaseController
skip_before_action :check_self_destruct!
skip_before_action :require_functional!
2021-06-21 17:07:30 +02:00
def index
@login_activities = LoginActivity.where(user: current_user).order(id: :desc).page(params[:page])
end
end