Skip to content

Instantly share code, notes, and snippets.

View Pomeha's full-sized avatar
💎
Keep calm and code

Vladislav Akimenko Pomeha

💎
Keep calm and code
View GitHub Profile
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", {
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Comments::List do
subject do
service.(
client,
recommendation_id: 'REC_ID',
last_id: 'LAST_ID',