Sha256: 588e1a04d5c66f314624f6e4de0c63b1dd83ec0af9032b6f31f78461dcd081fc
Contents?: true
Size: 202 Bytes
Versions: 13
Compression:
Stored size: 202 Bytes
Contents
module Crowdblog class AuthorsController < Controller def index @authors = User.includes(:authored_posts).sort {|a,b| b.authored_posts.count <=> a.authored_posts.count} end end end
Version data entries
13 entries across 13 versions & 1 rubygems