Skip to content

Commit

Permalink
remove "place" and "tool" from tag.rb file #9307 (#9329)
Browse files Browse the repository at this point in the history
* remove "place" and "tool"

* Update tag.rb
  • Loading branch information
manishaag7 authored Mar 23, 2021
1 parent 07a243d commit 7b0845e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def self.find_nodes_by_type(tagnames, type = 'note', limit = 10)
.order(order)
end

# just like find_nodes_by_type, but searches wiki pages, places, and tools
# just like find_nodes_by_type, but searches wiki pages
def self.find_pages(tagnames, limit = 10)
find_nodes_by_type(tagnames, %w(page place tool), limit)
find_nodes_by_type(tagnames, %w(page), limit)
end

def self.find_nodes_by_type_with_all_tags(tagnames, type = 'note', limit = 10)
Expand Down

0 comments on commit 7b0845e

Please sign in to comment.