Skip to content

Commit

Permalink
Fixed named scope regression in MiqSchedule.with_prod_default_not_in
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Oct 30, 2017
1 parent bc87774 commit 71c173c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MiqSchedule < ApplicationRecord
}

scope :filter_matches_with, ->(exp) { where(:filter => exp) }
scope :with_prod_default_not_in, ->(prod) { where.not(:prod_default => [prod, nil]) }
scope :with_prod_default_not_in, ->(prod) { where.not(:prod_default => prod).or(where(:prod_default => nil)) }
scope :without_adhoc, -> { where(:adhoc => nil) }
scope :with_towhat, ->(towhat) { where(:towhat => towhat) }
scope :with_userid, ->(userid) { where(:userid => userid) }
Expand Down

0 comments on commit 71c173c

Please sign in to comment.