
:min, :max not working on Decimal properties
Reported by michaelxavier | April 15th, 2010 @ 04:55 PM | in 1.0.0
https://gist.github.com/f3f7aa7b44c4561680de
My system isn't set up right now to test the git version of datamapper outside of my rails environment but the latest git version seems to fail to validate :min and :max on decimal fields. The tests in the above gist fail to make the record invalid. It doesn't appear to be an RSpec issue since I've checked before and after the field is assigned on "subject" and it is indeed updating the property.
Comments and changes to this ticket
-
Dan Kubb (dkubb) May 24th, 2010 @ 04:32 AM
- State changed from new to unconfirmed
- Assigned user set to Piotr Solnica (solnic)
-
Piotr Solnica (solnic) May 26th, 2010 @ 03:23 AM
- Milestone set to 1.0.0
-
Piotr Solnica (solnic) May 26th, 2010 @ 03:52 AM
- State changed from unconfirmed to resolved
I've just checked it with this example: https://gist.github.com/ebcaecc449ec04cf8e9d and it seems like it works good
-
Dan Kubb (dkubb) May 26th, 2010 @ 12:26 PM
It looks like this was probably fixed as a side effect of the Property/Type refactor where all the numeric properties are now inherited from Property::Numeric, and the auto-validation applies to all Numeric classes.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »