solnic / virtus

[DISCONTINUED ] Attributes on Steroids for Plain Old Ruby Objects
MIT License
3.77k stars 228 forks source link

Attribute Keys as Symbols #227

Closed jonahbron closed 10 years ago

jonahbron commented 10 years ago

It seems there is a slight consistency between the ActiveRecord attributes method, and the Virtus attributes method. Rails gives the keys as strings, while Virtus gives them as symbols. Is this difference on purpose? It is causing problems for my application. How hard would it be to change to strings?

elskwid commented 10 years ago

@jonahbron, could you show me how you're using the attributes? A quick code example of how you're accessing them and perhaps what you're doing with them would be great.

solnic commented 10 years ago

Sorry we're not going to change the API here.