varvet / pundit

Minimal authorization through OO design and pure Ruby classes
MIT License
8.28k stars 630 forks source link

Fix syntax issue in multiple error messages documentation #680

Closed joshmcarthur closed 3 years ago

joshmcarthur commented 3 years ago

flash[key] does not accept a scope and default after the equals sign as the README indicates. Instead, these keyword args should be provided to the call to I18n.t on the line above.

I think this was just a bad copy-paste when this documentation was originally added.

joshmcarthur commented 3 years ago

Oops, just saw https://github.com/varvet/pundit/pull/638. Sorry for the noise!