1 2 3 4 5 6 7 8 9 10
module Api class ApiController < ActionController::Base protect_from_forgery with: :null_session protected def publish(message) Publisher.publish(message) end end end