On 23 March 2013 14:10, Barry <burm...@mail.ru> wrote:
> Hi, I faced such issue - my app should run some delayed method.
> For example, I have Test model, which User can create. But to other users it
> should be visible only if it has :saved value in status attribute, which is
> assigned with special button.
> I want to delete all tests, which remained unpublished 24 hours after
> creating.
> And really don't know where to start. Found Rails episode 'Delayed Jobs',
> but it is not what I'm looking for, it is mostly about background methods.
> Can you give me any keys to topic, from where I can begin digging by myself?

You could write a rake task to do the work and then run that from cron
daily or hourly or whatever is appropriate.

Colin

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to