Skip to content

Commit

Permalink
Remove deprecated usage of MiqSchedule#towhat
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Nov 7, 2018
1 parent 61d1edd commit 6471223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_report/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module MiqReport::Schedule

def remove_associated_schedules
_log.info("Removing any schedules associated with report: #{id}")
report_schedules = MiqSchedule.where(:towhat => self.class.name)
report_schedules = MiqSchedule.where(:resource_type => self.class.name)
report_schedules.each do |sch|
ids = sch.target_ids
_log.info("Schedule id: #{sch.id}, targets: #{ids.inspect}")
Expand Down

0 comments on commit 6471223

Please sign in to comment.