summaryrefslogtreecommitdiff
path: root/users/app/models/message.rb
blob: d9ccee873b5ce12f66b12f7becfcf8e272e54620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Message < CouchRest::Model::Base

  use_database :messages

  property :text, String
  property :user_ids_to_show, [String]
  property :user_ids_have_shown, [String] # is this necessary to store?

  timestamps!

  design do
    own_path = Pathname.new(File.dirname(__FILE__))
    load_views(own_path.join('..', 'designs', 'message'))
  end

end