Ruby on Rails Wednesday, December 17, 2014

Dont worry about joins , you can use https://github.com/activerecord-hackery/squeel .  I would probably do it this way  

Post name , content ,  :access_type => "Public/Private"
 
PostAccess ( another model ) - user_id , post_id , :type = "Allowed / Denied"   

On Wed, Dec 17, 2014 at 7:33 PM, Artem T <arttimkov@gmail.com> wrote:
I think this almost my variant. Which is probably even more difficult. Because the query will be contain more JOINS

I need create role reader and then
associate each post with each individual user

What do you think about this?

среда, 17 декабря 2014 г., 15:36:31 UTC+2 пользователь Vivek Sampara написал:
" but author can denied access to some friends. " << this is why it has dynamic roles on individual obejct

On Wed, Dec 17, 2014 at 6:53 PM, Artem T <artt...@gmail.com> wrote:
I can`t understand how it can help me?

I do not have different roles. All users have one role.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d05c6aa2-18ef-4c83-a6fd-ba2635af1a98%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/26dc11c9-3144-484d-bfef-ab2131977e5b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj_kLrLFiVCtiO%3DDBNb8NuOxKk%2B25K-hRmHn%2BxQNcSBkww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment