rrepo 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrepo/repository.rb +2 -3
- data/lib/rrepo/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: ff361af802468448993a0b22de79589a65bcff42
|
4
|
+
data.tar.gz: 99d3e60ba23ec6b137e16703cdb2cea124352bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3bbf3021c62a0b89e1448c1cd51d44cfcb6cc4fa483fd93b692d45e433aeccae6d0af9ae920a7e42e7329b85c1af95577e5c2c95447850fc158a006495f7d7e
|
7
|
+
data.tar.gz: 5dd73f48357535ccfb055e6b7a3ab502f5f03d03b097732ac5a2c0c3e6aec066afeb98e3c8b2dac1b7cbec8e2b079b1040415d99333a6e6f2da40ba95efe358c
|
data/lib/rrepo/repository.rb
CHANGED
@@ -13,10 +13,9 @@ module RRepo
|
|
13
13
|
def initialize(adapter)
|
14
14
|
@adapter = adapter
|
15
15
|
class_name = self.class.name.demodulize
|
16
|
-
|
17
|
-
@collection = model_class_name.underscore.pluralize.to_sym
|
16
|
+
@collection = class_name.underscore.to_sym
|
18
17
|
return if class_name == 'Repository'
|
19
|
-
@model_class =
|
18
|
+
@model_class = class_name.singularize.constantize
|
20
19
|
end
|
21
20
|
|
22
21
|
def create(model)
|
data/lib/rrepo/version.rb
CHANGED