Sha256: 29a5abd136da6f44db0004f8818e9dbc0a86ee3bedf1aba5c24dbaea54e46ffa

Contents?: true

Size: 731 Bytes

Versions: 15

Compression:

Stored size: 731 Bytes

Contents

module Ddr::Index
  module Filters
    extend Deprecation

    def self.is_governed_by(pid)
      Deprecation.warn(self,
                       "`Ddr::Index:Filters.is_governed_by` is deprecated and will be removed in ddr-models 3.0." \
                       " Use `Ddr::Index::Filter.is_governed_by` instead.")
      Filter.is_governed_by(pid)
    end

    private

    def self.const_missing(name)
      if name == :HAS_CONTENT
        Deprecation.warn(self,
                         "`Ddr::Index::Filters::#{name}` is deprecated and will be removed in ddr-models 3.0." \
                         " Use `Ddr::Index::Filter.has_content` instead.")
        Filter.has_content
      else
        super
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ddr-models-2.4.12 lib/ddr/index/filters.rb
ddr-models-2.4.11 lib/ddr/index/filters.rb
ddr-models-2.4.10 lib/ddr/index/filters.rb
ddr-models-2.4.9 lib/ddr/index/filters.rb
ddr-models-2.4.8 lib/ddr/index/filters.rb
ddr-models-2.4.7 lib/ddr/index/filters.rb
ddr-models-2.4.6 lib/ddr/index/filters.rb
ddr-models-2.4.5 lib/ddr/index/filters.rb
ddr-models-2.4.4 lib/ddr/index/filters.rb
ddr-models-2.4.3 lib/ddr/index/filters.rb
ddr-models-2.4.2 lib/ddr/index/filters.rb
ddr-models-2.4.1 lib/ddr/index/filters.rb
ddr-models-2.4.0 lib/ddr/index/filters.rb
ddr-models-2.4.0.rc6 lib/ddr/index/filters.rb
ddr-models-2.4.0.rc5 lib/ddr/index/filters.rb