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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 787f7fb976a85d75236bafedc2fc5c2e798757dc82a0cf17d6ec6d46ca2beef5
4
- data.tar.gz: d1fa1569f15b1cdc336b722985bf64f929167cd151201efbb694d78ace9eccef
3
+ metadata.gz: 1748d00b764607615761901aa7568a98046b125085fc1aa8d183fd05b9962fec
4
+ data.tar.gz: 2403de7750f6fbd6bc81ef3abca67e959587977c0485f85a960456b54690e3eb
5
5
  SHA512:
6
- metadata.gz: 9cf5251b0dc07f16affcd69dc2ee6ef7e8ff756bf0170d1a1a5c881cbc2510ae0e5d0e5465d8accfd8dbd17a2ab4d9fe4d1d87fde16af8b2d4f2e59eae748f5d
7
- data.tar.gz: f05e5bb7f5b88bcf71a94023f71cd1c29da8ddcc6d71c719d6285a9acdc49cf411d4e4b89fb62e8ddfaec13fc0b45ae1284af654bfa23947bda579136fc90002
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
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond