summaryrefslogtreecommitdiff
path: root/users/app/models/message.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/models/message.rb')
-rw-r--r--users/app/models/message.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/app/models/message.rb b/users/app/models/message.rb
index 38fa71e..16a19f4 100644
--- a/users/app/models/message.rb
+++ b/users/app/models/message.rb
@@ -3,8 +3,12 @@ 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