Hi Arthur, So, is possible a new property, that inherit of Decimal, but, on save it > execute to_i.to_s ? >
Sure, check out some of the types in dm-types to see how you make custom types. I haven't tested it, but I'm guessing you'll be able to implement this type in probably no more than 5-10 lines of code. -- Dan -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To view this discussion on the web visit https://groups.google.com/d/msg/datamapper/-/u7HgcKDUY0EJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
