Sha256: 9198d00389bd703df1a57797ad89aebae0748f53e7c2a41d4c8118bf93e4480d

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

module Doorkeeper
  class ApplicationController < ActionController::Base
    include Helpers::Controller

    helper 'doorkeeper/form_errors'

    if ::Rails.version.to_i < 4
      protect_from_forgery
    else
      protect_from_forgery with: :exception
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-1.4.2 app/controllers/doorkeeper/application_controller.rb
doorkeeper-1.4.1 app/controllers/doorkeeper/application_controller.rb