You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
metu.life/app/models/instance_filter.rb

17 lines
277 B

# frozen_string_literal: true
class InstanceFilter
attr_reader :params
def initialize(params)
@params = params
end
def results
if params[:limited].present?
DomainBlock.order(id: :desc)
else
Account.remote.by_domain_accounts
end
end
end