Skip to content

Commit

Permalink
Add 'to_sym' to CustomStrategy in GETTING_STARTED (thoughtbot#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket-turtle authored Nov 16, 2022
1 parent 0b10a21 commit 0c8a756
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,10 @@ class JsonStrategy
def result(evaluation)
@strategy.result(evaluation).to_json
end

def to_sym
:json
end
end
```

Expand Down Expand Up @@ -1912,6 +1916,10 @@ class JsonStrategy
evaluation.notify(:make_json_awesome, json)
end
end

def to_sym
:json
end
end

FactoryBot.register_strategy(:json, JsonStrategy)
Expand Down

0 comments on commit 0c8a756

Please sign in to comment.