Skip to content

Commit

Permalink
Overriding the default_show_template so that for m. domain, m. server…
Browse files Browse the repository at this point in the history
… and m. server group the own show partial is used (with angular controller initialization etc.)
  • Loading branch information
jkremser committed Mar 16, 2017
1 parent 0228382 commit b35e249
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/middleware_domain_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ def textual_group_list
[%i(properties), %i(relationships smart_management)]
end
helper_method :textual_group_list

def self.default_show_template
"#{model.name.underscore}/show"
end
end
4 changes: 4 additions & 0 deletions app/controllers/middleware_server_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,8 @@ def trigger_mw_operation(operation, mw_server, params = nil)
end

menu_section :mdl

def self.default_show_template
"#{model.name.underscore}/show"
end
end
4 changes: 4 additions & 0 deletions app/controllers/middleware_server_group_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@ def do_run_operation(operation, selected_server_groups)
render :json => {:status => :error, :msg => fail_msg}
end
end

def self.default_show_template
"#{model.name.underscore}/show"
end
end

0 comments on commit b35e249

Please sign in to comment.