diff options
author | jessib <jessib@riseup.net> | 2014-01-07 12:57:01 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2014-01-07 12:57:01 -0800 |
commit | c7e66852324714a166dd35dc3d5873a0053dcb9b (patch) | |
tree | 4d306a960fbf1491510573640643f91af8fc208c /users/app/models/message.rb | |
parent | b920c144ef70613414a702e468ab7889659a03da (diff) |
Some refactoring, to simplify user model, optimize, and allow messages to be sorted by date (although are not now.)
Also, rather than use whenever gem, will have cron job created to call task.
Diffstat (limited to 'users/app/models/message.rb')
-rw-r--r-- | users/app/models/message.rb | 4 |
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 |