Module: Ddr::Index::Filters
- Extended by:
- Deprecation
- Defined in:
- lib/ddr/index/filters.rb
Class Method Summary collapse
Class Method Details
.const_missing(name) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ddr/index/filters.rb', line 14 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 |
.is_governed_by(pid) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ddr/index/filters.rb', line 5 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 |