summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
blob: 8ce68a53b9bbb6ffa4f2132d0e5ee110306c4d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  #protect_from_forgery with: :exception
  protect_from_forgery with: :null_session

  protected

  def publish(message)
    Publisher.publish(message)
  end
end