periodic_records 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/periodic_records/associations.rb +1 -1
- data/lib/periodic_records/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3814eb5113a83a80a809ea54ec7511afdf4854ef
|
4
|
+
data.tar.gz: 52f39906d98f4c0a143b1425629964be386a1a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 144a026349034e933dd588f32113285ed9fef109b2219908ed735d54ac690806ba59311b94a4148c0c9f8a0fa92c320313d584bc78180a191df404ec18a80aa3
|
7
|
+
data.tar.gz: c63c6d7d46261c4a5b84327e9241108c81e41894e8e930616fc3e25b141d0b75b672db6d25671b7b9425641df37e9ca7739205363d4a0bd460750ccce7d569ea
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
|
+
|
6
|
+
## [0.1.1] - 2015-11-09
|
7
|
+
|
8
|
+
- Fix preloading with rails 4.2
|
9
|
+
|
10
|
+
## [0.1.0] - 2015-09-30
|
11
|
+
|
12
|
+
- Initial release
|
@@ -16,7 +16,7 @@ module PeriodicRecords
|
|
16
16
|
method_name = "preload_current_#{as}"
|
17
17
|
accessor_name = "current_#{as.to_s.singularize}"
|
18
18
|
define_singleton_method method_name do |records, *associations|
|
19
|
-
reflection =
|
19
|
+
reflection = reflect_on_association(association)
|
20
20
|
records_hash = {}
|
21
21
|
records.each do |record|
|
22
22
|
record.send("#{accessor_name}=", nil)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: periodic_records
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgars Beigarts
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-09
|
12
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- ".gitignore"
|
119
119
|
- ".rspec"
|
120
120
|
- ".travis.yml"
|
121
|
+
- CHANGELOG.md
|
121
122
|
- Gemfile
|
122
123
|
- LICENSE.txt
|
123
124
|
- README.md
|