Closed 4ndypanda closed 8 months ago
An ActiveRecord object could have a store column be nil so check that before trying to access an enumerized store attribute. This only occurs when using a store defined with .store_accessor and none of its enumerized store attributes have defaults.
@4ndypanda hey! Thanks for PR. Would you mind adding a test?
@nashby I've updated this with a test.
Thank you!
An ActiveRecord object could have a store column be nil so check that before trying to access an enumerized store attribute. This only occurs when using a store defined with .store_accessor and none of its enumerized store attributes have defaults.