Skip to content

Commit

Permalink
fix: standardrb
Browse files Browse the repository at this point in the history
  • Loading branch information
Waishnav committed Aug 23, 2024
1 parent e81ce9d commit 75955b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/simple_discussion/forum_threads_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def parent_layout(layout)
self.output_buffer = ActionView::OutputBuffer.new(output)
end

# simple sql query implementation of basic_search, this helper method can be complex as it you wanted it to be
# simple sql query implementation of basic_search, this helper method can be complex as it you wanted it to be
def topic_search(query)
ForumThread.joins(:forum_posts)
.where("forum_threads.title LIKE :query OR forum_posts.body LIKE :query", query: "%#{query}%")
Expand Down

0 comments on commit 75955b6

Please sign in to comment.