Skip to content

Commit

Permalink
Update wording of zipcode requirement comment
Browse files Browse the repository at this point in the history
The `require_zipcode?` method does not check for validity, only presence.
  • Loading branch information
seand7565 committed Jul 27, 2020
1 parent 6202bf5 commit 92fe4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def require_phone?
end

# @todo Remove this from the public API if possible.
# @return [true] whether or not the address requires a zipcode to be valid
# @return [true] whether or not the address requires a zipcode to be present
def require_zipcode?
true
end
Expand Down

0 comments on commit 92fe4b3

Please sign in to comment.