Fix some deprecation warnings

This commit is contained in:
Tom Hughes 2019-09-04 14:45:46 +01:00
parent 22cd2314e5
commit 1f4d48eaf3
10 changed files with 74 additions and 72 deletions

View file

@ -4,7 +4,7 @@ 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, -> { base.where(:redaction_id => nil) }
base.scope :unredacted, -> { where(:redaction_id => nil) }
end
def redacted?