You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/app/models/journals_for_message.rb

14 lines
310 B

# fq
class JournalsForMessage < ActiveRecord::Base
attr_accessible :jour_id, :jour_type, :notes, :reply_id, :status, :user_id
attr_accessor :indice
belongs_to :jour, :polymorphic => true
belongs_to :user
def self.delete_message(message_id)
self.delete_all "id = #{message_id}"
end
end