From b3c7c8700d7ddf73d6fef4076f15ae7c3d39ce67 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 3 Oct 2016 16:10:17 +0200 Subject: Fix most pages on small screens --- app/models/user.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/models') diff --git a/app/models/user.rb b/app/models/user.rb index 04f3eb02c..da096d6e9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -6,8 +6,6 @@ class User < ApplicationRecord validates :account, presence: true - has_many :oauth_applications, class_name: 'Doorkeeper::Application', as: :owner - scope :prolific, -> { joins('inner join statuses on statuses.account_id = users.account_id').select('users.*, count(statuses.id) as statuses_count').group('users.id').order('statuses_count desc') } scope :recent, -> { order('created_at desc') } scope :admins, -> { where(admin: true) } -- cgit