Displaying 2 results from an estimated 2 matches for "pre_show".
Did you mean:
org_show
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...ontroller < ActionController::Base
init_gettext "ovirt"
layout :choose_layout
- # FIXME: once service layer is complete, the following before_filters will be
- # removed as their functionality has been moved to the service layer
- # pre_new
- # pre_create
- # pre_edit
- # pre_show
- # authorize_admin
- before_filter :pre_new, :only => [:new]
- before_filter :pre_create, :only => [:create]
- # the following is to facilitate transition to service layer
- before_filter :tmp_pre_update, :only => [:edit, :update, :destroy]
- before_filter :pre_show, :only => [:s...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...do |format|
+ format.html {
+ render :layout => 'tabs-and-content' if params[:ajax]
+ render :layout => 'help-and-content' if params[:nolayout]
+ }
+ format.xml {
+ render :xml => @pool.to_xml(XML_OPTS)
+ }
+ end
+ end
- def pre_show
- @network = Network.find(params[:id])
- authorize_admin
- end
+ def networks_json
+ svc_list
+ json_list(@networks, [:id, :name, :type, [:boot_type, :label]])
+ end
- def show
+ def show
+ svc_show(params[:id])
respond_to do |format|
format.html { render :layo...