Skip to content

Commit 7ccb2e8

Browse files
committed
chore: Delegate Addressable::Template#as_json to to_s
Instead of handing it directly, easing overriding behavior via #to_s
1 parent 878b3b2 commit 7ccb2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/rfc6570/patches.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def to_s
1616
end
1717

1818
def as_json(*)
19-
pattern
19+
to_s
2020
end
2121
end
2222
end

0 commit comments

Comments
 (0)