Monday, March 31, 2014

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



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 you may be able to use a trigger (possibly using something like postgres' notification events). Other than that you can't detect arbitrary changes to your database (and even using triggers, those could in general be altered/disabled by this hypothetical person using sequel pro)

Fred 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f2ead96a-49d4-4b83-b974-47e9ea057fdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment