Skip to content

Commit 726b102

Browse files
committed
Fix typos
``` go get -u github.com/client9/misspell/cmd/misspell misspell -w -error -source=text . ```
1 parent 5465aba commit 726b102

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/jsonapi/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def apply_sort(records, order_options, _context = {})
656656
associations = _lookup_association_chain([records.model.to_s, *model_names])
657657
joins_query = _build_joins([records.model, *associations])
658658

659-
# _sorting is appended to avoid name clashes with manual joins eg. overriden filters
659+
# _sorting is appended to avoid name clashes with manual joins eg. overridden filters
660660
order_by_query = "#{associations.last.name}_sorting.#{column_name} #{direction}"
661661
records = records.joins(joins_query).order(order_by_query)
662662
else

test/controllers/controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,7 @@ def test_destroy_relationship_has_and_belongs_to_many
24882488
JSONAPI.configuration.use_relationship_reflection = false
24892489
end
24902490

2491-
def test_destroy_relationship_has_and_belongs_to_many_refect
2491+
def test_destroy_relationship_has_and_belongs_to_many_reflect
24922492
JSONAPI.configuration.use_relationship_reflection = true
24932493

24942494
assert_equal 2, Book.find(2).authors.count

0 commit comments

Comments
 (0)