Explicitly defined default order of packages by name.

This commit is contained in:
Christoph Haas 2013-08-25 23:39:05 +02:00
parent e3e1871a8f
commit 520d29e629

View file

@ -1,6 +1,10 @@
class Package < ActiveRecord::Base
has_many :screenshots, :inverse_of=>:package
default_scope {
order('name ASC')
}
# Use PostgreSQL's full-text search capability for the user search
def self.text_search(query)
if query.present?