hanami-mongoid 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81e003546b0e52d207b08cae9b6749ff859776d956dc118b10c155b55e7823d0
4
- data.tar.gz: d7d9faed4412d7e58f0374ec774e06e2e8e571f8cd741af00a55f11f1185507b
3
+ metadata.gz: 216f0e6cb5b8ad59810e6bd780868fee7ec1485971f74ab82b0ce8494d8f6c22
4
+ data.tar.gz: ec3e19bc2e94efd130b2c0caa57dc383b7f5d3c3f80845583ea129ed976fabcd
5
5
  SHA512:
6
- metadata.gz: 0d97d5ea32dd3edb4904bec66793a1799e27737677ded65a2eedd9ee973e55c78d74f7ea130b5333dc0c0d98cb60deab575da1a8e23b17293cb53ec7a5c5fe9b
7
- data.tar.gz: c4c9044c9e9a563918c5fc18f804d4254203087dc77d3c8334332c9193d310dda36a32a368084226216b9f5cb6115b8a20232d21096283f23f486e9ba2d5acb6
6
+ metadata.gz: 1151e04a0270be5687a12bc317853a18c688cba775619737722a8b6774c3e11b70b7a39384e256d33ce0d7050033c59502984a038e2a0d323726bd33530a70ad
7
+ data.tar.gz: 5d719ca1ed32a84cad3bcc148453df6db50b5f603d2c92db3291a74a7c60bfa8d4b62876f8855dec418b407bd78838f79fff7e72cab69d9587e7a58f073568ab
@@ -12,8 +12,8 @@ module Hanami
12
12
 
13
13
  ##
14
14
  # Forwards common repository methods to the model
15
- %i( find where any_of all first last new create
16
- destroy_all delete_all update_all ).each do |method|
15
+ %i( find find_by where any_of all first last new create
16
+ destroy_all delete_all update_all ).each do |method|
17
17
  define_method method do |*args|
18
18
  self.model_klass.send method, *args
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Hanami
2
2
  module Mongoid
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-19 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid