Skip to content

Commit

Permalink
Merge pull request #1478 from BastianHofmann/patch-1
Browse files Browse the repository at this point in the history
Fix typo in UPGRADING.md
  • Loading branch information
namusyaka authored Aug 26, 2016
2 parents c5868b7 + 8144907 commit 477e70d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@ Permitted and default parameter values are now only evaluated lazily for each re

```ruby
params do
optional :v, values: -> { [:x, :y] }, default: -> { :z } }
optional :v, values: -> { [:x, :y] }, default: -> { :z }
end
```

Remove the proc to get the previous behavior.

```ruby
params do
optional :v, values: [:x, :y], default: :z }
optional :v, values: [:x, :y], default: :z
end
```

Expand Down

0 comments on commit 477e70d

Please sign in to comment.