Restrict specific model columns per user

Does anyone know a way to restrict access to specific columns in the
model to specific users? My plan was to use the session hash to check
the permissions of the logged in user in an overridden method of the
same name as the model accessor I wanted to restrict, but the model
can’t acecss the session. Any other ideas?

Hi John,

Not sure if this is what you’re after, but it might be worth a peek:


This looks very promising. Thanks a lot.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs