Sha256: 2a48ab6333b6000a1d043c28fe14ce11e82d5ade02c9ffdce2243f86cb0da5f6

Contents?: true

Size: 189 Bytes

Versions: 26

Compression:

Stored size: 189 Bytes

Contents

require 'actv/validators/asset_validator'
module ACTV
  class ArticleValidator < AssetValidator
    def valid?
      category_is?('articles') || taxonomy_has?('articles')
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
actv-2.10.9 lib/actv/validators/article_validator.rb
actv-2.10.8 lib/actv/validators/article_validator.rb
actv-2.10.7 lib/actv/validators/article_validator.rb
actv-2.10.6 lib/actv/validators/article_validator.rb
actv-2.10.5 lib/actv/validators/article_validator.rb
actv-2.10.4 lib/actv/validators/article_validator.rb
actv-2.10.3 lib/actv/validators/article_validator.rb
actv-2.10.2 lib/actv/validators/article_validator.rb
actv-2.10.1 lib/actv/validators/article_validator.rb
actv-2.10.0 lib/actv/validators/article_validator.rb
actv-2.9.2 lib/actv/validators/article_validator.rb
actv-2.9.1 lib/actv/validators/article_validator.rb
actv-2.9.0 lib/actv/validators/article_validator.rb
actv-2.8.2 lib/actv/validators/article_validator.rb
actv-2.8.1 lib/actv/validators/article_validator.rb
actv-2.7.0 lib/actv/validators/article_validator.rb
actv-2.6.0 lib/actv/validators/article_validator.rb
actv-2.5.2 lib/actv/validators/article_validator.rb
actv-2.5.1 lib/actv/validators/article_validator.rb
actv-2.5.0 lib/actv/validators/article_validator.rb