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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0429dc9d8d852306fb1ef7f6d97ea8111189fd0
4
- data.tar.gz: 62588c2e384ae43407036906f73b4378ced4f7d3
3
+ metadata.gz: 3814eb5113a83a80a809ea54ec7511afdf4854ef
4
+ data.tar.gz: 52f39906d98f4c0a143b1425629964be386a1a69
5
5
  SHA512:
6
- metadata.gz: 798fe949cd0c014f0961211a1f98641ccbcdaa414821810f317e3c0a2078e6ba3e734ac5649f0e63af89544dccd66703119ba4a16898abd87fb236f009a0aaa4
7
- data.tar.gz: 52a122f179ab08dc6749f610bc438abe5eeb7caaf3f8134fe70719c05f39b40c7b18add41c9bea33a5681c629a88cfa136ce02a93dcf13b7de801a40dd7076b3
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 = reflections[association]
19
+ reflection = reflect_on_association(association)
20
20
  records_hash = {}
21
21
  records.each do |record|
22
22
  record.send("#{accessor_name}=", nil)
@@ -1,3 +1,3 @@
1
1
  module PeriodicRecords
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-30 00:00:00.000000000 Z
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