summaryrefslogtreecommitdiff
path: root/users/app/models/message.rb
blob: 16a19f4007b1d26262c7d759a20e9df473b30c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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?

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

end