Can we use Rails scope for this?
http://blog.plataformatec.com.br/2013/02/active-record-scopes-vs-class-methods/