docbrown/app/services/chat_channel_update_service.rb
Ben Halpern 94e5154668
Add initial invitation framework for chat channels (#528)
* Add initial invitation framework for chat channels

* Update chat_channel specs

* Add DIY concept of accepting invite

* Add some js and fix spec

* Add full invite accept functionality

* Remove console.log from chat
2018-07-02 16:31:20 -04:00

12 lines
No EOL
225 B
Ruby

class ChatChannelUpdateService
attr_accessor :chat_channel, :params
def initialize(chat_channel, params)
@chat_channel = chat_channel
@params = params
end
def update
chat_channel.update(params)
end
end