Skip to content

Commit

Permalink
NOT conditions will no longer behave as NOR in Rails 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed May 14, 2021
1 parent 07e0f02 commit 8a01f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/flood_risk_engine/location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Location < ApplicationRecord
before_save :process_grid_reference

scope :missing_area, -> { where(water_management_area: nil) }
scope :with_easting_and_northing, -> { where.not(easting: [nil, ""], northing: [nil, ""]) }
scope :with_easting_and_northing, -> { where.not(easting: [nil, ""]).where.not(northing: [nil, ""]) }

# rubocop:disable Style/Lambda
# This version of ruby does not like lambdas here
Expand Down

0 comments on commit 8a01f09

Please sign in to comment.