Sha256: 9e5764bd52dc1b4e3f57c43c4584f0e229ac8ddf7bbbd5d4e660a252548dd59e

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

class Validation < ActiveRecord::Base
  # Associations
  belongs_to :answer
  
  # Scopes
  
  # Validations
  validates_presence_of :rule
  validates_format_of :rule, :with => /^(?:and|or|\)|\(|[A-Z]|\s)+$/
  validates_numericality_of :answer_id
  
  # Instance Methods
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
surveyor-0.8.0 app/models/validation.rb