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
Therefore I think Virtus needs to be slightly more intelligent about how it coerces to a hash.
I have gone ahead and implemented a PR that should fix the issue I am seeing as well as a test to replicate the issue and verify it's fix in #388
The text was updated successfully, but these errors were encountered:
I'm running into an error specifically with this line of code:
virtus/lib/virtus/attribute_set.rb
Line 196 in 4db9ffd
In Rails 4 and below calling
to_hash
on parameters was easy and returned the expected hash as follows:However this behavior changed in Rails 5 and started to raise an error:
Therefore I think Virtus needs to be slightly more intelligent about how it coerces to a hash.
I have gone ahead and implemented a PR that should fix the issue I am seeing as well as a test to replicate the issue and verify it's fix in #388
The text was updated successfully, but these errors were encountered: