data_seeder 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_seeder/loader.rb +4 -4
- data/lib/data_seeder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 507d91fb1d1c12188c7f88e389d29a34a2c71cc0
|
4
|
+
data.tar.gz: 1337cea62f159a83f70bcfeb785e3ccd94635b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8bc6c0197aa7b5d91084c8ad8c03c1f52ac59f969e070990d3c23ee0ff0ef1b79165b4d6652e189579c7e2eb72d6d11b92beb230657281db0d825dfd82e38eb
|
7
|
+
data.tar.gz: cabbd5f6260bc031606e6d7dc3514d7e8eaee8aec81bf74575ffeea4bfc41a048b1e4b0007e4d24f38fc95841191fbcb98e02b97328f5b3ecc6f01939ade3d33
|
data/lib/data_seeder/loader.rb
CHANGED
@@ -7,10 +7,10 @@ module DataSeeder
|
|
7
7
|
def initialize(config)
|
8
8
|
@seeder_config = DataSeeder.config
|
9
9
|
@config = default_config.merge(config)
|
10
|
-
@key_attribute = config[:key_attribute] || :id
|
11
|
-
@klass = config[:klass]
|
12
|
-
@path = config[:path]
|
13
|
-
@path_minus_ext = config[:path_minus_ext]
|
10
|
+
@key_attribute = @config[:key_attribute] || :id
|
11
|
+
@klass = @config[:klass]
|
12
|
+
@path = @config[:path]
|
13
|
+
@path_minus_ext = @config[:path_minus_ext]
|
14
14
|
@old_ids = Set.new
|
15
15
|
end
|
16
16
|
|
data/lib/data_seeder/version.rb
CHANGED