I'm personally against too much 'magic' in the libraries - especially when the reasoning for such magic is not immediately obvious. We need to remember that not every user of datamapper is going to be dealing with forms exclusively. If the end programmer wants strings, they can put in strings. If they want symbols, they can put in symbols instead.
On Apr 27, 11:39 pm, Michael Klishin <[email protected]> wrote: > that's why I suggest changing Enum to turn symbols into strings internally: > > property :colors, Enum.new(:red, :greed, :blue) will turn symbols into strings > > not every string can be turned into symbol but every symbol can be > turned into string, > so it is safe for forms data > > any objections from other DM users? > -- > MK --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. 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 -~----------~----~----~----~------~----~------~--~---
