Skip to content

Make increment! nil-attribute expectation depend on Rails version - #112

Open
datibbaw wants to merge 1 commit into
byroot:masterfrom
datibbaw:fix/increment-nil-attribute-ar81
Open

Make increment! nil-attribute expectation depend on Rails version#112
datibbaw wants to merge 1 commit into
byroot:masterfrom
datibbaw:fix/increment-nil-attribute-ar81

Conversation

@datibbaw

Copy link
Copy Markdown

Rails 8.1 added new_record? / destroyed? guards to increment!, so it now raises ActiveRecordError before reaching the gem's attribute handling. Older Rails still raises ActiveModel::MissingAttributeError.

Rails 8.1 added new_record?/destroyed? guards to increment!, so it
now raises ActiveRecordError before reaching typedstore's attribute
handling. Older Rails still raises ActiveModel::MissingAttributeError.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant