Expire models in Rails
Posted
by Koning Baard XIV
on Stack Overflow
See other posts from Stack Overflow
or by Koning Baard XIV
Published on 2010-04-24T14:31:24Z
Indexed on
2010/04/24
14:33 UTC
Read the original article
Hit count: 187
ruby-on-rails
|expire
I'm creating a simple paste-bin in Ruby on Rails, which will have an expire-feature. With this, people can select a date when the paste will be deleted automatically. How can I implement this? I was thinking of a cronjob
, but maybe there is a more platform-independent way, by defining this in the model itself. Can anyone help me? Thanks.
© Stack Overflow or respective owner