Sha256: 48755bb7d106c295e9b2087b0eb689d5ea2b9abc844ec06e40387c8a760a44f8

Contents?: true

Size: 251 Bytes

Versions: 6

Compression:

Stored size: 251 Bytes

Contents

module Carrier
  class Message < ActiveRecord::Base
    validates :sender, :presence => true
    validates :recipients, :recipients_presence => true, :exclude_self => true, :right_recipients => true
    validates :content, :presence => true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
carrier-0.1.5 app/models/carrier/message/validations.rb
carrier-0.1.4 app/models/carrier/message/validations.rb
carrier-0.1.3 app/models/carrier/message/validations.rb
carrier-0.1.2 app/models/carrier/message/validations.rb
carrier-0.1.1 app/models/carrier/message/validations.rb
carrier-0.1.0 app/models/carrier/message/validations.rb