Closed elrayle closed 9 years ago
deprecate validations in works.rb and use works_generic_file? works_generic_work? and works_collection? instead.
### DEPRECATE each of the following # model validations def self.collection? collection return false unless collection.respond_to? :type collection.type.include? WorksVocabularies::WorksTerms.Collection end def self.generic_work? generic_work return false unless generic_work.respond_to? :type generic_work.type.include? WorksVocabularies::WorksTerms.GenericWork end def self.generic_file? generic_file return false unless generic_file.respond_to? :type generic_file.type.include? WorksVocabularies::WorksTerms.GenericFile end
deprecate validations in works.rb and use works_generic_file? works_generic_work? and works_collection? instead.