Skip to content

Commit

Permalink
Fix to scope method
Browse files Browse the repository at this point in the history
  • Loading branch information
jjromeo committed Apr 26, 2023
1 parent 2d38527 commit 62418b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/waste_carriers_engine/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Address
field :firstName, as: :first_name, type: String
field :lastName, as: :last_name, type: String

scope :missing_area, -> { where(area: [nil, ""]) }
scope :missing_area, -> { any_of({ area: nil }, { area: "" }) }
scope :with_postcode, -> { where(:postcode.ne => nil) }

def self.create_from_manual_entry(params, overseas)
Expand Down

0 comments on commit 62418b4

Please sign in to comment.