0
0
Fork 0

Fix most pages on small screens

This commit is contained in:
Eugen Rochko 2016-10-03 16:10:17 +02:00
parent 188c6f326b
commit b3c7c8700d
8 changed files with 96 additions and 23 deletions

View file

@ -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) }