DmitryTsepelev / store_model

Work with JSON-backed attributes as ActiveRecord-ish models
MIT License
1.04k stars 85 forks source link

Update enums.md docs to reflect enum argument order when `raise_on_invalid_values` is set #172

Closed morriswchris closed 3 months ago

morriswchris commented 3 months ago

In reading the doc additions for PR 164 (Manageable raising on invalid enum value) the example would throw an ArgumentError with

`enum': wrong number of arguments (given 0, expected 1..2) (ArgumentError)

This was due to how enum was being called in the example. This PR updates the docs the reflect the right method arguments.