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
end

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  if Rails.env.production?
    protect_from_forgery with: :exception
  end
end

Disable CSRF protection unless in Production
Disable CSRF protection unless in Production

In production, jquery_ujs will be loaded because we won’t be running
the ember stuff separately
