Merge remote-tracking branch 'upstream/pull/2641'

This commit is contained in:
Tom Hughes 2020-06-03 17:31:12 +01:00
commit a8c63724f6
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,6 @@
module ConsistencyValidations
extend ActiveSupport::Concern
# Generic checks that are run for the updates and deletes of
# node, ways and relations. This code is here to avoid duplication,
# and allow the extention of the checks without having to modify the

View file

@ -1,10 +1,8 @@
require "osm"
module Redactable
def self.included(base)
# this is used to extend activerecord bases, as these aren't
# in scope for the module itself.
base.scope :unredacted, -> { where(:redaction_id => nil) }
extend ActiveSupport::Concern
included do
scope :unredacted, -> { where(:redaction_id => nil) }
end
def redacted?