[Ovirt-devel] [PATCH server 1/3] before_filter and rescue_from refactoring in application.rb

Ian Main imain at redhat.com
Mon May 11 20:59:10 UTC 2009


On Fri,  8 May 2009 19:34:09 +0000
Scott Seago <sseago at redhat.com> wrote:

> Most of these before_filters will go away once we're using the service later for everything. I fixed a couple cases where the legacy before_filter was in conflict with the service layer code, and the authorize_xxx methods now just raise PermissionError rather than formatting the reply, since rescue_from handles that for us now.
> 
> I've also added ActionError to the rescue_from handlers, and for PartialSuccessError we now automatically include failures in hte json alert, and we set @successes and @failures so that html response views can access them.
> 

ACK




More information about the ovirt-devel mailing list