Fixed use of default scope for Rails 4.x

This commit is contained in:
Christoph Haas 2013-08-21 22:56:22 +02:00
parent 0277a4e3d0
commit d6c5508fdd
2 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class Package < ActiveRecord::Base
to_tsvector('english', packages.description) @@ plainto_tsquery(:q)
", q: query).order("#{rank} desc")
else
scoped
all
end
end
end