Skip to content

Commit 9828422

Browse files
Fivellchingor13
authored andcommitted
fixed typo in custom type casting docs (#229)
1 parent 6b611e8 commit 9828422

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ require 'money'
468468
class MyMoneyCaster
469469
def self.cast(value, default)
470470
begin
471-
Money.new(1000, "USD")
471+
Money.new(value, "USD")
472472
rescue ArgumentError
473473
default
474474
end

lib/json_api_client/schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class TypeFactory
6060
# class MyMoneyCaster
6161
# def self.cast(value, default)
6262
# begin
63-
# Money.new(1000, "USD")
63+
# Money.new(value, "USD")
6464
# rescue ArgumentError
6565
# default
6666
# end

0 commit comments

Comments
 (0)