Skip to content

Commit

Permalink
Merge a917520 into 3b79f93
Browse files Browse the repository at this point in the history
  • Loading branch information
mcelicalderon committed May 23, 2020
2 parents 3b79f93 + a917520 commit bb00d9d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/graphql_devise/application_controller.rb
@@ -1,4 +1,8 @@
module GraphqlDevise
class ApplicationController < DeviseTokenAuth::ApplicationController
private

def verify_authenticity_token
end
end
end
5 changes: 5 additions & 0 deletions spec/dummy/app/controllers/api/v1/graphql_controller.rb
Expand Up @@ -8,6 +8,11 @@ class GraphqlController < ApplicationController
def graphql
render json: DummySchema.execute(params[:query])
end

private

def verify_authenticity_token
end
end
end
end
1 change: 1 addition & 0 deletions spec/dummy/app/controllers/application_controller.rb
@@ -1,2 +1,3 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
end
4 changes: 4 additions & 0 deletions spec/rails_helper.rb
Expand Up @@ -39,4 +39,8 @@
config.include(Requests::AuthHelpers, type: :request)
config.include(ActiveSupport::Testing::TimeHelpers)
config.include(Generators::FileHelpers, type: :generator)

config.before(:suite) do
ActionController::Base.allow_forgery_protection = true
end
end

0 comments on commit bb00d9d

Please sign in to comment.