radhames brito wrote:
> role model is a gem that lets you add roles to the user as a method and
> saves the role into a field on the user table as a bitmask
> that is , lets say you have and array like this
> 
> ROLES = %w[admin moderator author banned]
> 
> 
> this gord in your user model and you have a field in the user table
> called roles_mask
> 
[...]

Wow, what a bad idea.  Remind me never to use that gem if that's really 
the way it works.  Storing multiple values in one DB field (which is 
essentially what the bitmask is doing) is generally not a good thing.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to