diff options
author | HIKARU KOBORI <hk.uec.univ@gmail.com> | 2017-08-24 11:03:52 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-24 04:03:52 +0200 |
commit | 2c6a85832cb5188a4f2f6e521e1289098fef96b5 (patch) | |
tree | 413cf4735d72677d1bc8562fa418dcc75de111b9 /app/controllers | |
parent | 829e2e8c5d388e4e841dfd9a472340b35cc826c9 (diff) |
Fix typo in admin/status_controller.rb (#4679)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/statuses_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/statuses_controller.rb b/app/controllers/admin/statuses_controller.rb index 50712f0dd..b05000b16 100644 --- a/app/controllers/admin/statuses_controller.rb +++ b/app/controllers/admin/statuses_controller.rb @@ -9,7 +9,7 @@ module Admin before_action :set_account before_action :set_status, only: [:update, :destroy] - PAR_PAGE = 20 + PER_PAGE = 20 def index @statuses = @account.statuses @@ -17,7 +17,7 @@ module Admin account_media_status_ids = @account.media_attachments.attached.reorder(nil).select(:status_id).distinct @statuses.merge!(Status.where(id: account_media_status_ids)) end - @statuses = @statuses.preload(:media_attachments, :mentions).page(params[:page]).per(PAR_PAGE) + @statuses = @statuses.preload(:media_attachments, :mentions).page(params[:page]).per(PER_PAGE) @form = Form::StatusBatch.new end |