Skip to content

Commit a3e3876

Browse files
committed
Use safe_constantize 🤦
1 parent 521fc1d commit a3e3876

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎lib/graphql_devise.rb‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require 'devise_token_auth'
44
require 'graphql'
55
require 'graphql_devise/version'
6-
require 'graphql_devise/util/class_getter'
76

87
module GraphqlDevise
98
class Error < StandardError; end

‎lib/graphql_devise/rails/routes.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def mount_graphql_devise_for(resource, opts = {})
1515
)
1616

1717
authenticable_type = opts[:authenticable_type] ||
18-
GraphqlDevise::Util::ClassGetter.call("Types::#{resource}Type") ||
18+
"Types::#{resource}Type".safe_constantize ||
1919
GraphqlDevise::Types::AuthenticableType
2020

2121
default_mutations = {

‎lib/graphql_devise/util/class_getter.rb‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)