Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

On MRI 2.0.0 strings are not converted into integers for foreign keys #253

Closed
ghost opened this issue Jun 2, 2013 · 0 comments
Closed

Comments

@ghost
Copy link

ghost commented Jun 2, 2013

I became in use to pass HTTP params into DataMapper and it is typecasting data as needed.
Works perfect with Ruby prior to 2.0.0.

On 1.9* {'country_id' => '1'} works as expected.
On 2.0.0 it complains country_id should not be empty,
while {'country_id' => 1} works.
No custom validations used.

Any clue on how to fix this?
Typecasting data by hand is not an option.

@tpitale tpitale closed this as completed May 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant