In our project, we had to assign a variable name to periodically_call_remote, so that we could manipulate it using rjs/ javascript (for instance, calling stop()). The details are on this ticket: http://rails.lighthouseapp.com/projects/8994-ruby-... cheers, Herval
on 2008-06-22 15:40
on 2008-06-23 09:09
On 22 Jun 2008, at 14:39, Herval wrote: > > In our project, we had to assign a variable name to > periodically_call_remote, so that we could manipulate it using rjs/ > javascript (for instance, calling stop()). The details are on this > ticket: http://rails.lighthouseapp.com/projects/8994-ruby-... > is it worth allowing a little more flexibility? Eg I might want to store the executor as a property of some other object. A flexible way round this would be if you could supply a function and we'd call it passing the brand new periodical executor. Can't decide whether I think this would be overkill. Fred
on 2008-06-25 23:34
It seems like those are both overkill over the current ability to do: var my_updater = <%= periodically_call_remote ... %>; -hume. On Mon, Jun 23, 2008 at 3:08 AM, Frederick Cheung