Skip to content

Commit 336365f

Browse files
committed
Moved SearchResultsWrapper and LeaderboardRedisRank out of lib into app/models to ensure it's available
1 parent e5a6f71 commit 336365f

File tree

6 files changed

+3
-55
lines changed

6 files changed

+3
-55
lines changed
File renamed without changes.

app/models/protip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def search(query_string, tags =[], options={})
166166
#sort { by [{:upvotes => 'desc' }] }
167167
end
168168
rescue Tire::Search::SearchRequestFailed => e
169-
::SearchResultsWrapper.new(nil, "Looks like our search servers are out to lunch. Try again soon.")
169+
SearchResultsWrapper.new(nil, "Looks like our search servers are out to lunch. Try again soon.")
170170
end
171171
end
172172

File renamed without changes.

app/models/team.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def search(query_string, country, page, per_page, search_type = :query_and_fetch
162162
sort { by [{ score: 'desc', total_member_count: 'desc', '_score' => {} }] }
163163
end
164164
rescue Tire::Search::SearchRequestFailed => e
165-
::SearchResultsWrapper.new(nil, "Looks like our teams server is down. Try again soon.")
165+
SearchResultsWrapper.new(nil, "Looks like our teams server is down. Try again soon.")
166166
end
167167
end
168168

lib/awards.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'resque_support'
2+
23
module Awards
34
include ResqueSupport::Basic
45

lib/leaderboard_elasticsearch_rank.rb

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)