Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 668b0d6563
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.273 kB
class MessagesController < ApplicationController
before_filter :user_required
def create
@message = Message.new(params[:message])
@message.user = current_user
@message.save
Notifications.chat_message(@message).deliver if @message.send_email?
end
end
Jump to Line
Something went wrong with that request. Please try again.