thetron / mongoid-enum

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

what is the correct sintax for multiple values? #8

Closed javierjaimes closed 10 years ago

javierjaimes commented 10 years ago

enum, :roles => [:basic, :manager, :administrator], :multiple => true?

I have a sintax bug on my rails app. I'm using rails 4.

thetron commented 10 years ago

Hey there - I noticed your code is not actually valid ruby - but then I checked the docs and noticed the same typos! I had made a few throughout the documentation, so thanks for picking that up! :cake:

That line should read:

enum :roles, [:basic, :manager, :administrator], :multiple => true