Displaying 3 results from an estimated 3 matches for "tmp_authorize_admin".
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...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 => [:show]
- before_filter :tmp_authorize_admin, :only => [:new, :edit, :create, :update, :destroy]
before_filter :is_logged_in, :get_help_section
# General error handlers, must be in order from least specific
@@ -83,39 +70,6 @@ class ApplicationController < ActionController::Base
protected
# permissions checking
- def pre...
2009 May 19
1
re-sending outstanding controller refactoring patches after rebase
I've rebased the patch series to the current next branch and am sending them again.
2009 May 15
0
[PATCH server] use service layer for Network controller.
...tType.find(:first,
- :conditions => { :proto => 'static' })
- end
+ # FIXME: remove these when service transition is complete. these are here
+ # to keep from running permissions checks and other setup steps twice
+ def tmp_pre_update
+ end
+ def tmp_authorize_admin
+ end
end
diff --git a/src/app/models/ip_address.rb b/src/app/models/ip_address.rb
index 5d2e6af..4e4c7d3 100644
--- a/src/app/models/ip_address.rb
+++ b/src/app/models/ip_address.rb
@@ -24,4 +24,15 @@ class IpAddress < ActiveRecord::Base
belongs_to :network
belongs_to :nic
belon...