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
After digging around the code it seems not easily patchable for adding attribute types.
For example, would love to write:
has_settings do |s| s.key :admin, defaults: {admin: false}, types: {admin: :boolean} end
it would be a great API to set attribute types and not have to do it for each update.
my current problem:
pry(#<SettingsController>)> person.settings(:info).something => false [24] pry(#<SettingsController>)> person.settings(:info).something = "true" => "true" [26] pry(#<SettingsController>)> p.save! => true [27] pry(#<SettingsController>)> person.settings(:info).something => "true" #
would like for that last value to be true
true
Would you accept a PR with this change? using versioned rails type casting
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After digging around the code it seems not easily patchable for adding attribute types.
For example, would love to write:
it would be a great API to set attribute types and not have to do it for each update.
my current problem:
would like for that last value to be
true
Would you accept a PR with this change? using versioned rails type casting
The text was updated successfully, but these errors were encountered: