summaryrefslogtreecommitdiff
path: root/app/controllers/pms_controller.rb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-26 20:57:21 -0400
committernfoy <nfoy@purdue.edu>2014-04-26 20:57:21 -0400
commit00f3d70445d7cae0976ec9794e555c52a1765b24 (patch)
tree7a89dcf1466ad8b2fd3df587f1807ba9dfc08468 /app/controllers/pms_controller.rb
parentd5e4ac14fc51631f5cd77ba4226ba5911ffe7e37 (diff)
Messages is working (besides default permissions)!
Diffstat (limited to 'app/controllers/pms_controller.rb')
-rw-r--r--app/controllers/pms_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/pms_controller.rb b/app/controllers/pms_controller.rb
index c83d2ae..3368663 100644
--- a/app/controllers/pms_controller.rb
+++ b/app/controllers/pms_controller.rb
@@ -57,6 +57,7 @@ class PmsController < ApplicationController
format.json { render json: @pm.errors, status: :unprocessable_entity }
end
end
+ current_user.reply_to_conversation(@pm.conversation, @pm.message)
end
# DELETE /pms/1