The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

23 satır
447 B

  1. # frozen_string_literal: true
  2. module Admin
  3. class FollowersController < BaseController
  4. before_action :set_account
  5. PER_PAGE = 40
  6. def index
  7. authorize :account, :index?
  8. @followers = followers.recent.page(params[:page]).per(PER_PAGE)
  9. end
  10. def set_account
  11. @account = Account.find(params[:account_id])
  12. end
  13. def followers
  14. Follow.includes(:account).where(target_account: @account)
  15. end
  16. end
  17. end