Skip to content

Commit ad43fd6

Browse files
committed
Fix AS::Deprecation error around using deprecator or an instance
Similar to ManageIQ/manageiq#23249
1 parent c9623dd commit ad43fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller/ci_processing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def syncvms
349349
# Refresh the power states for selected or single VMs
350350
def refreshvms(privilege = DEFAULT_PRIVILEGE)
351351
if privilege == DEFAULT_PRIVILEGE
352-
ActiveSupport::Deprecation.warn(<<-MSG.strip_heredoc)
352+
Vmdb::Deprecation.warn(<<-MSG.strip_heredoc, caller_locations[1..-1])
353353
Please pass the privilege you want to check for when refreshing
354354
MSG
355355
privilege = params[:pressed]

0 commit comments

Comments
 (0)