You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have an hstore that's all integers, or all booleans.
Could we do something like hstore_accessor :options, all: :boolean?
Maybe even something dynamic? If the attribute is 'true' or 'false', catch the boolean. If calling .to_i or .to_f/d evaluates to something greater than 0, catch the int or float. That might be a bit much... just thinking out loud.
The text was updated successfully, but these errors were encountered:
Let's say I have an hstore that's all integers, or all booleans.
Could we do something like
hstore_accessor :options, all: :boolean
?Maybe even something dynamic? If the attribute is 'true' or 'false', catch the boolean. If calling
.to_i
or.to_f/d
evaluates to something greater than 0, catch the int or float. That might be a bit much... just thinking out loud.The text was updated successfully, but these errors were encountered: