Sha256: 344251474e8df7b905d012aeb7a40af6037649470052e31d0c9557cdabde7f65

Contents?: true

Size: 181 Bytes

Versions: 6

Compression:

Stored size: 181 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
actv-2.4.0 lib/actv/validators/event_validator.rb
actv-2.3.0 lib/actv/validators/event_validator.rb
actv-2.2.1 lib/actv/validators/event_validator.rb
actv-2.2.0 lib/actv/validators/event_validator.rb
actv-2.1.1 lib/actv/validators/event_validator.rb
actv-2.1.0 lib/actv/validators/event_validator.rb