active_repository 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/active_repository/base.rb +0 -12
- data/lib/active_repository/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: 81105537b31e5f002fbc9ab9636c6432210dfe67
|
|
4
|
+
data.tar.gz: 8853f27b52a7573ca205e6a4dd711623275d48f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00f5baf6e7e96bc125731fa6b3024ad6b775c50206705319892d971caa25a12d5de2fa534e7fea13111bf9e743ae5dcd2fb410c526b27e31dede3663b32b91e2
|
|
7
|
+
data.tar.gz: 23c40fae93b26edf79a0efc84665a8480e0cb82383f08b6fdf3122cf7c6378cc61cc3f89ef6f922fddb943119780140b8e18d19f70bd74332225a2aa6724aaa4
|
data/README.md
CHANGED
|
@@ -110,6 +110,8 @@ After defining the persistence options, you can set the fields it is going to us
|
|
|
110
110
|
|
|
111
111
|
Now you are all set and ready to go. Your business logic is decoupled from the persistence tier!
|
|
112
112
|
|
|
113
|
+
You can check an example project here: https://github.com/efreesen/sports_betting_engine
|
|
114
|
+
|
|
113
115
|
## Contributing
|
|
114
116
|
|
|
115
117
|
1. Fork it
|
|
@@ -7,18 +7,6 @@ require 'active_repository/writers'
|
|
|
7
7
|
require 'active_repository/adapters/persistence_adapter'
|
|
8
8
|
require 'active_repository/result_set'
|
|
9
9
|
|
|
10
|
-
begin
|
|
11
|
-
klass = Module.const_get(Mongoid::Document)
|
|
12
|
-
unless klass.is_a?(Class)
|
|
13
|
-
raise "Not defined"
|
|
14
|
-
end
|
|
15
|
-
rescue
|
|
16
|
-
module Mongoid
|
|
17
|
-
module Document
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
10
|
module ActiveRepository
|
|
23
11
|
|
|
24
12
|
# Base class for ActiveRepository gem.
|