0
0
Fork 0

Move admin/pubsubhubbub controller to admin/subscriptions (#3442)

This commit is contained in:
Matt Jankowski 2017-05-31 14:39:35 -04:00 committed by Eugen Rochko
parent a132332b86
commit de4681b2be
29 changed files with 58 additions and 48 deletions

View file

@ -1,9 +0,0 @@
# frozen_string_literal: true
module Admin
class PubsubhubbubController < BaseController
def index
@subscriptions = Subscription.order(id: :desc).includes(:account).page(params[:page])
end
end
end

View file

@ -0,0 +1,19 @@
# frozen_string_literal: true
module Admin
class SubscriptionsController < BaseController
def index
@subscriptions = ordered_subscriptions.page(requested_page)
end
private
def ordered_subscriptions
Subscription.order(id: :desc).includes(:account)
end
def requested_page
params[:page].to_i
end
end
end