thetron / mongoid-enum

Sweet enum sugar for your Mongoid documents
MIT License
117 stars 166 forks source link

fix bug in set attr_accessible #6

Closed destinyd closed 9 years ago

thetron commented 10 years ago

Hey thanks for this. Is it actually a bug here that you can write a spec for?

That being said, I'm not so sure this is a great idea to call update_attribute (no bang) from inside a bang method (#{value}!), since it won't throw an exception and update_attribute skips validations, whereas update_attributes! does not.

thetron commented 9 years ago

@destinyd I haven't heard back from you on this issue in over 12 months, so I'm going to assume it's a non-issue. Feel free to open this again though if there is any ongoing problems :smile: