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
I'm using grape from the master branch (currently 0.8.1)
hashie was updated to 3.3.0 along with my update to rails 4.1.5
This has caused issues with parameter validations, since the validators access the parameters with whatever symbol/string was used to define that attribute (seemingly).
So, when I have parameters such as
{
'property_id' => 1
# ...
}
When the validations are being run, the PresenceValidator access this attribute like so:
I've yanked Hashie 3.3.0, reverted hashie/hashie#197 which is the root cause of this, in hashie/hashie#217, and cut 3.3.1. Things should be back to normal now.
I'm using grape from the master branch (currently 0.8.1)
hashie was updated to 3.3.0 along with my update to rails 4.1.5
This has caused issues with parameter validations, since the validators access the parameters with whatever symbol/string was used to define that attribute (seemingly).
So, when I have parameters such as
When the validations are being run, the PresenceValidator access this attribute like so:
This causes any "requires" validations to fail all the time.
I think this belongs in hashie, but wanted to make a note here for anyone else that might have this issue
The text was updated successfully, but these errors were encountered: