Hello, I'm trying to do ids shortening in my application, based on alphadecimal gem (base62). I've wrote new DataMapper::Type for Integer- >String->Integer conversions, but there is a problem with finding objects.
Application generates corrects urls, e.g. /posts/FZBrYLtjHAH, but when I'm trying to load post details page, DataMapper is executing SQL query with incorrect value. Query contains "post_id = 'FZBrYLtjHAH'" instead "post_id = 2334543324243219"... How can I fix it? Should I have before_class_method :get hook (with conversion) or something different? -- Mariusz -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.