Sha256: c1180e40ffb0b9b9aec5f8c0b87a6d59bef5558e9ed90b795a6ffad1309a9efd

Contents?: true

Size: 231 Bytes

Versions: 4

Compression:

Stored size: 231 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery with: :null_session
  skip_before_action :verify_authenticity_token, if: :json_request?

  private

  def json_request?
    request.format.json?
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
pixelforce_kit-0.9 app/controllers/application_controller.rb
pixelforce_kit-4.0.2 app/controllers/application_controller.rb
pixelforce-kit-4.0.2 app/controllers/application_controller.rb
pixelforce_recipes-4.0 app/controllers/application_controller.rb