Skip to content

Commit

Permalink
Remove orderedhash, update ruby versions to test against.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankopf committed Aug 18, 2023
1 parent ccd726a commit f32e32c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1.3', '3.0.6', '2.7.8', '2.6.10']
ruby-version: ['3.1.3', '3.0.6']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_indexed/class_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def search_index(query, find_options={}, options={})
end

# Results come back in random order from SQL, so order again.
ranked_records = ActiveSupport::OrderedHash.new
ranked_records = {}
records.each do |r|
ranked_records[r] = @query_cache[query][r.id]
end
Expand Down

0 comments on commit f32e32c

Please sign in to comment.