quickery 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/quickery/active_record_extensions/dsl.rb +0 -2
- data/lib/quickery/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: c66956aa25df98d05f2a57795491d0752c487c8b0c736f2c5e6401f9ac2f1cf5
|
4
|
+
data.tar.gz: 0c75a721763dc9fec3d0bbb724256460b166c491d44c3f834a2b396514806cf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c3746a7897a5bb8c0ddd8366ea3b2fe071361b9cb42da6d1b81b76b759a4b360e15ff981b03eb96bab0bb5c8324c0ab48c2fc00bf367e1452cdf46e31891332
|
7
|
+
data.tar.gz: 30b3a208a589582dc377dd1c348f243627d3539ead5f4de17e97a956c732347aedc93e79807e262fa8afeb841eaa95149f3a32117fad2f7ca1ef5b3c3bf21ac4
|
data/README.md
CHANGED
@@ -432,7 +432,7 @@ class AddQuickeryBranchCompanyNameBranchCompanyIdToEmployees < ActiveRecord::Mig
|
|
432
432
|
end
|
433
433
|
```
|
434
434
|
|
435
|
-
#### Example 2
|
435
|
+
#### Example 2 - With `*_is_synced` Attributes
|
436
436
|
|
437
437
|
```
|
438
438
|
rails generate quickery:migration employee branch_company_name:string branch_company_id:bigint:index --add_is_synced_attributes
|
@@ -512,10 +512,10 @@ end
|
|
512
512
|
```
|
513
513
|
|
514
514
|
##### `autoload_unsynced_quickery_attributes!`
|
515
|
-
* only works in conjuction with `*_is_synced` attributes.
|
515
|
+
* only works in conjuction with `*_is_synced` attributes. See Usage Example 3 above.
|
516
516
|
* this will update the record's "still unsynced" quickery-attributes.
|
517
517
|
* if all of the record's quickery-attributes are already "synced", then this method does nothing more
|
518
|
-
* intended to be used as callback method for `after_find` to automatically support both 1) "old-records"
|
518
|
+
* intended to be used as callback method for `after_find` to automatically support both 1) "old-records" created before quickery has been integrated, and 2) new quickery-attributes to be defined in the future
|
519
519
|
* i.e. you can do something like the following:
|
520
520
|
|
521
521
|
```ruby
|
@@ -563,6 +563,8 @@ See [my detailed comparisons](other_similar_gems_comparison.md)
|
|
563
563
|
5. Create new Pull Request
|
564
564
|
|
565
565
|
## Changelog
|
566
|
+
* 1.3.1
|
567
|
+
* Fix error from 1.3.0 where private method was being called outside class
|
566
568
|
* 1.3.0
|
567
569
|
* implemented tracking of which quickery-attributes have already been synced / not yet via additional optional `*_is_synced` attributes; used in conjuction with [`autoload_unsynced_quickery_attributes!`](#autoload_unsynced_quickery_attributes) intentionally to be declared as callback method for `after_find`, which will make sure that new quickery-attributes defined in the future will work immediately for the record, and that the developer won't worry about doing the `recreate_quickery_cache!` anymore, as the record is guaranteed to be always up-to-date.
|
568
570
|
* 1.2.0
|
data/lib/quickery/version.rb
CHANGED