Skip to content

Commit

Permalink
More rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elsamaryv committed Nov 13, 2024
1 parent 957e76c commit 25b5e67
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/controllers/miq_ae_class_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ def edit_class_record

class_rec = MiqAeClass.find(params[:id])


render :json => {
:fqname => class_rec.fqname,
:name => class_rec.name,
Expand Down Expand Up @@ -1867,7 +1868,6 @@ def ae_method_operations
def class_update
assert_privileges(params[:id].present? ? 'miq_ae_class_edit' : 'miq_ae_class_new')
@hide_bottom_bar = true
id = params[:id] ? params[:id] : "new"
class_update_create
end

Expand All @@ -1894,13 +1894,13 @@ def class_update_create
edit_hash = {}
edit_hash[:new] = {:name => params[:name],
:display_name => params[:display_name], :description => params[:description]}
if params[:old_data]
edit_hash[:current] = {:name => params[:old_data][:name],
:display_name => params[:old_data][:display_name],
edit_hash[:current] = if params[:old_data]
{:name => params[:old_data][:name],
:display_name => params[:old_data][:display_name],
:description => params[:old_data][:description]}
else
edit_hash[:current] = {:name => nil, :display_name => nil, :description => nil}
end
else
{:name => nil, :display_name => nil, :description => nil}
end
AuditEvent.success(build_saved_audit(class_rec, edit_hash))
@edit = session[:edit] = nil # clean out the saved info
replace_right_cell(:nodetype => x_node, :replace_trees => [:ae])
Expand Down

0 comments on commit 25b5e67

Please sign in to comment.