negos_app/app/models/customer_message.rb
2017-06-06 16:15:40 +02:00

17 lines
336 B
Ruby

class CustomerMessage < ActiveRecord::Base
belongs_to :need
belongs_to :expediteur, :class_name => "Customer"
belongs_to :destinataire, :class_name => "Customer"
validates :message, :presence => true
acts_as_tree
belongs_to :conversation
attr_accessor :thing_type, :thing_id
def not_blocked
true
end
end