Class: CollabDocumentChannel

Inherits:
ApplicationCable::Channel
  • Object
show all
Includes:
Collab::Channel
Defined in:
lib/generators/collab/install/templates/channel.rb

Instance Method Summary collapse

Methods included from Collab::Channel

#subscribed, #unsubscribed

Instance Method Details

#commit(data) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/generators/collab/install/templates/channel.rb', line 4

def commit(data)
  if false # replace with your own authorization logic
    raise "authorization not implemented"
  end

  super # make sure to call super in order to process the commit
end