Depends on the type of application. If you think the posts should be appear on the feed immediately after creating then dont go with delayed_job
On Wed, Dec 17, 2014 at 8:47 PM, Artem T <[email protected]> wrote: > > Thanks. And how better to create access posts for users. After all, i need > to create a relationship with each user. Delayed_job gem will be good? > 17 Дек 2014 г. 17:08 пользователь "Vivek Sampara" <[email protected]> > написал: > >> 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 <[email protected]> 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 <[email protected]> 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 [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>> msgid/rubyonrails-talk/d05c6aa2-18ef-4c83-a6fd- >>>>> ba2635af1a98%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/rubyonrails-talk/d05c6aa2-18ef-4c83-a6fd-ba2635af1a98%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/rubyonrails-talk/26dc11c9-3144-484d-bfef-ab2131977e5b%40googlegroups.com >>> <https://groups.google.com/d/msgid/rubyonrails-talk/26dc11c9-3144-484d-bfef-ab2131977e5b%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ruby on Rails: Talk" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/rubyonrails-talk/gfMiTFsKwFs/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> 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 >> <https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj_kLrLFiVCtiO%3DDBNb8NuOxKk%2B25K-hRmHn%2BxQNcSBkww%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAHt%2BoRwm4SGDVsF_%3Dq7xZ9Hd3rjtt_yUkhBV5b9gSCEG%3DpzMJQ%40mail.gmail.com > <https://groups.google.com/d/msgid/rubyonrails-talk/CAHt%2BoRwm4SGDVsF_%3Dq7xZ9Hd3rjtt_yUkhBV5b9gSCEG%3DpzMJQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj99LEfhT%2Bzi1yUX78R3Uxfa%3DO%2BVb2Ei4JWkdeHE3HbbUQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

