graphiti 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti/resource/configuration.rb +5 -0
- data/lib/graphiti/version.rb +1 -1
- 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: 1748d00b764607615761901aa7568a98046b125085fc1aa8d183fd05b9962fec
|
4
|
+
data.tar.gz: 2403de7750f6fbd6bc81ef3abca67e959587977c0485f85a960456b54690e3eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f7fe43f9327ca7040e6a59db2ae191bb6e120af8976d98ef710df8107eee65aa0b0fffb2990dff8b10f53e84e1943baf124e662ead714122d938885749a931b
|
7
|
+
data.tar.gz: 1a13ea8f193eebadb9a8401a7d429fbeb23d16112b26a405d1e02531f4bf21112cf9f4ae95c3fd28237163dc3d1852dae0a15922eba79bd139719f8fda0dfa21
|
@@ -104,6 +104,11 @@ module Graphiti
|
|
104
104
|
klass.attribute :id, :integer_id
|
105
105
|
end
|
106
106
|
klass.stat total: [:count]
|
107
|
+
|
108
|
+
if defined?(::Rails) && ::Rails.env.development?
|
109
|
+
# Avoid adding dupe resources when re-autoloading
|
110
|
+
Graphiti.resources.reject! { |r| r.name == klass.name }
|
111
|
+
end
|
107
112
|
Graphiti.resources << klass
|
108
113
|
end
|
109
114
|
end
|
data/lib/graphiti/version.rb
CHANGED