ibrain-core 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/graphql/ibrain/types/base_object.rb +5 -5
- data/lib/ibrain/core/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4efce65a5ebfdbbd09e276c87e01399cf4f7d68a90555c1dcde1031fc9d59ee
|
4
|
+
data.tar.gz: 3cc3a8efa0ed9d585fbf63433b65f8fb4525364fa4ed63abdc9f15335f880f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37e88b7c92780d9e1f092e1f9275fefb49a9f34cf6f34e7a06021301a7198d4d1d0a97313e938b87d7c01f460336690c7e22530a9846f1d9b50a53c232917bd
|
7
|
+
data.tar.gz: 2271a8863458476386fa74cf7548add69f44e734cd248e603d2de54225c76b373abbda4e8b789a3760c271eb81a0d4c74c7c46efc2266de65a9464849544c03f
|
@@ -9,7 +9,11 @@ module Ibrain
|
|
9
9
|
connection_type_class(Ibrain::Types::BaseConnection)
|
10
10
|
|
11
11
|
field_class ::Ibrain::Types::BaseField
|
12
|
-
field :
|
12
|
+
field :graphql_name, String, null: true
|
13
|
+
|
14
|
+
def graphql_name
|
15
|
+
object.class.try(:table_name)
|
16
|
+
end
|
13
17
|
|
14
18
|
protected
|
15
19
|
|
@@ -20,10 +24,6 @@ module Ibrain
|
|
20
24
|
def current_user
|
21
25
|
context.try(:fetch, :current_user)
|
22
26
|
end
|
23
|
-
|
24
|
-
def gem
|
25
|
-
'ibrain-core'
|
26
|
-
end
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
data/lib/ibrain/core/version.rb
CHANGED