Skip to content

Commit 03842bb

Browse files
committed
Replace find_by_id with find
1 parent f725cde commit 03842bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/mixins/actions/vm_actions/ownership.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def ownership_handle_save_button
168168
if params[:group].blank? # to clear previously set group
169169
nil
170170
elsif params[:group] != @group
171-
MiqGroup.find_by_id(params[:group])
171+
MiqGroup.find(params[:group])
172172
end
173173
end
174174

0 commit comments

Comments
 (0)