Created
March 7, 2018 07:54
-
-
Save Pomeha/0d1b406d3b64d8210678b993a7ab0f44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hello(data) | |
author = role_checker(current_user) | |
create_comment.( | |
author, | |
author.recommendations.find(data['recommendation_id']), | |
data['message'] | |
) | |
ActionCable.server.broadcast "client_#{current_user.client.id}_channel", { | |
status: :recieved | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment