We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby Version: 3.3.4
Rails Version: 7.2.2.1
PostgreSQL Version: 14
Store Attribute Version: 2.0.0
store_attribute :settings, :always_on, :boolean
@my_instance.update!(always_on: "1")
@my_instance.always_on
The retrieved value should be a boolean, e.g. true
true
The retrieved value is not correctly cast to the type, e.g. "1"
"1"
Note: this worked correctly with Rails 7.2.1.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tell us about your environment
Ruby Version: 3.3.4
Rails Version: 7.2.2.1
PostgreSQL Version: 14
Store Attribute Version: 2.0.0
What did you do?
store_attribute :settings, :always_on, :boolean
@my_instance.update!(always_on: "1")
@my_instance.always_on
What did you expect to happen?
The retrieved value should be a boolean, e.g.
true
What actually happened?
The retrieved value is not correctly cast to the type, e.g.
"1"
Note: this worked correctly with Rails 7.2.1.2
The text was updated successfully, but these errors were encountered: