mongoid_occurrences 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -4
- data/lib/mongoid_occurrences/has_occurrences.rb +1 -1
- data/lib/mongoid_occurrences/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad2621a85048b9b98be55f4bc411d9b0ad3a7e040f5d7a9cf16e3d71c1f0cf0
|
4
|
+
data.tar.gz: 4ad4fc88c2de4332c9ff5bfca1113ce0f5448f0466a50cbb814d61f5d39e770e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a19a6fbae99ff733e2f8814f2e94ddd774ff4faed015c22296f11a2e832812ff823ac9e9360112f39586b7d0c3113cb52a880dbb765faa2b77802b4a1377d630
|
7
|
+
data.tar.gz: 3b243cd776fda744b3e36f1299ee23c728a9e69b844f090ed387909440305b9ba121a4cd2b9eda66709710e3f3431a06af5fc075fc20f32e0f0e3f04820ce125
|
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,24 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.0.4
|
4
|
+
|
5
|
+
* FIX: We rely on occurrences having their `updated_at` field touched when saving an event, which currently doesn't happen. Adding `cascade_callbacks` fixes that.
|
6
|
+
|
3
7
|
## 1.0.3
|
4
8
|
|
5
|
-
* allow to specify `:parent_name` on `.embedded_in_event` macro
|
9
|
+
* ADD: allow to specify `:parent_name` on `.embedded_in_event` macro
|
6
10
|
|
7
11
|
## 1.0.2
|
8
12
|
|
9
|
-
* `DailyOccurrence` has now `oid (occurrence_id)` referring to the original occurrence
|
13
|
+
* ADD: `DailyOccurrence` has now `oid (occurrence_id)` referring to the original occurrence
|
10
14
|
|
11
15
|
## 1.0.1
|
12
16
|
|
13
|
-
*
|
17
|
+
* FIX: spelling of `*occurrences_cache_key*` related methods
|
14
18
|
|
15
19
|
## 1.0.0
|
16
20
|
|
17
|
-
* [PR#4](https://github.com/tomasc/mongoid_occurrences/pull/4) Refactor to replace views with aggregations
|
21
|
+
* REFACTOR: [PR#4](https://github.com/tomasc/mongoid_occurrences/pull/4) Refactor to replace views with aggregations
|
18
22
|
|
19
23
|
## 0.2.0
|
20
24
|
|
@@ -8,7 +8,7 @@ module MongoidOccurrences
|
|
8
8
|
def embeds_many_occurrences(options = {})
|
9
9
|
field :_previous_occurrences_cache_key, type: String
|
10
10
|
|
11
|
-
embeds_many :occurrences, class_name: options.fetch(:class_name)
|
11
|
+
embeds_many :occurrences, class_name: options.fetch(:class_name), cascade_callbacks: true
|
12
12
|
accepts_nested_attributes_for :occurrences, allow_destroy: true, reject_if: :all_blank
|
13
13
|
|
14
14
|
embeds_many :daily_occurrences, class_name: 'MongoidOccurrences::DailyOccurrence', order: :dtstart.asc
|