Skip to content

Commit

Permalink
Merge pull request #304 from weilandia/master
Browse files Browse the repository at this point in the history
Fixes typos in README.md
  • Loading branch information
jamesmcguirepro committed Jun 20, 2023
2 parents df33e65 + ed7ff28 commit fd274a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,9 @@ class UserBlueprint < Blueprinter::Base

view :normal do
# If first_name is an empty string, it will become "N/A"
field :first_name, default_if: Blueprinter::EmptyString, default: "N/A"
field :first_name, default_if: Blueprinter::EMPTY_STRING, default: "N/A"
# If the projects association collection is empty, it will become nil
association :projects, blueprint: ProjectBlueprint, default_if: Blueprinter::EmptyCollection
association :projects, blueprint: ProjectBlueprint, default_if: Blueprinter::EMPTY_COLLECTION
end
end
```
Expand Down

0 comments on commit fd274a3

Please sign in to comment.