Skip to content

Commit 9aaa409

Browse files
committed
Revert "Define as_json directly"
This reverts commit 0013100.
1 parent 0013100 commit 9aaa409

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/searchkick/hash_wrapper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ def to_h
1212
@attributes
1313
end
1414

15-
def as_json(...)
16-
@attributes.as_json(...)
17-
end
15+
# for as_json
16+
alias_method :to_hash, :to_h
1817

1918
def to_json(...)
2019
@attributes.to_json(...)

0 commit comments

Comments
 (0)