Re: [Rails] Trigger before save and after save from external process?

2014-03-31 Thread Frederick Cheung
On Saturday, March 29, 2014 3:43:32 PM UTC, Jeff wrote: > > What do people who use SequelPro (and related tools) do to trigger their > action filters usually? > > Writing an API sounds ideal but what if you have little control over the > tool. > > If your after filters only do db changes then y

Re: [Rails] Trigger before save and after save from external process?

2014-03-29 Thread Jeff
What do people who use SequelPro (and related tools) do to trigger their action filters usually? Writing an API sounds ideal but what if you have little control over the tool. On Friday, March 28, 2014 6:46:37 AM UTC-7, mike2r wrote: > > > > On Friday, March 28, 2014 8:47:24 AM UTC-4, Hassan

Re: [Rails] Trigger before save and after save from external process?

2014-03-28 Thread mike2r
On Friday, March 28, 2014 8:47:24 AM UTC-4, Hassan Schroeder wrote: > > On Fri, Mar 28, 2014 at 5:00 AM, Walter Lee Davis > > > wrote: > > >> I have an external process changing the database of my app. Is there a > good way to trigger the before save and after save filters for models that >

Re: [Rails] Trigger before save and after save from external process?

2014-03-28 Thread Rick
The easiest way to have an external process run within your application context is to write your external app in ruby and run it inside a call to *rails runner ... *. You pay a penalty at startup but gain access to your application's environment (think *rails console*). There is nothing inhere

Re: [Rails] Trigger before save and after save from external process?

2014-03-28 Thread Hassan Schroeder
On Fri, Mar 28, 2014 at 5:00 AM, Walter Lee Davis wrote: >> I have an external process changing the database of my app. Is there a good >> way to trigger the before save and after save filters for models that get >> updated, when it is an external process changing it? > Try to think more about

Re: [Rails] Trigger before save and after save from external process?

2014-03-28 Thread Walter Lee Davis
On Mar 27, 2014, at 11:16 PM, Jeff wrote: > I have an external process changing the database of my app. Is there a good > way to trigger the before save and after save filters for models that get > updated, when it is an external process changing it? > No. You would have to have some sort of

[Rails] Trigger before save and after save from external process?

2014-03-27 Thread Jeff
I have an external process changing the database of my app. Is there a good way to trigger the before save and after save filters for models that get updated, when it is an external process changing it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails