revert default scope change

This commit is contained in:
albert
2013-01-07 17:24:03 -05:00
parent 040059c491
commit 80f34d08d9
25 changed files with 0 additions and 25 deletions

View File

@@ -16,7 +16,6 @@ class Note < ActiveRecord::Base
scope :body_matches, lambda {|query| where("body_index @@ plainto_tsquery(?)", query.scan(/\S+/).join(" & "))}
scope :post_tag_match, lambda {|query| joins(:post).where("posts.tag_index @@ to_tsquery('danbooru', ?)", query)}
search_methods :body_matches, :post_tag_match
default_scope limit(1)
def presenter
@presenter ||= NotePresenter.new(self)