ar-ondemand 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/ar-ondemand/on_demand.rb +3 -1
- data/lib/ar-ondemand/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzRhMGZlZGYyYzgyZTFmY2E5M2RkZDhkNjNkZmRhYmM4OTY1NmY2Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzdlNmI1MDRlZWIyOGJkZWMzODVlYjljZjA0ZDFhMmMxMGRjNTc0YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjJiNWNiZjg1YmYyYzJiMzE2ZWViMGY3ZTE5ZTg2ZTQ5Y2M5ZWYxNTU1MzBk
|
10
|
+
NmM0ZmZhNWRlNTc2YTVmMjYzYTUyOGNhNGEyODY5MWJjNDQzMTA5YmRjNmRm
|
11
|
+
NDQyMjVkOTAzOWFjZDEyZTM4NTQ5MjE0YzUwMDlmMTI5ZjIxN2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDZhZWNmZWI5MDE2ZmIyMzUwYzU1OWRjODY4Mzc0ODI4OWJmOGE2NzQzYjM2
|
14
|
+
Nzk4ODE3ODJjNjBmNDA1MGNiZjJjYjk4ZDdjYWY4YTZlYWE4ZGUxOGViZDg2
|
15
|
+
YjJkZjQ0NjIxYjgxYmVhYWVkODJkMjM4NjgxYTEyOGQwYjQwNjk=
|
data/Gemfile.lock
CHANGED
@@ -40,8 +40,10 @@ module ActiveRecord
|
|
40
40
|
unless rec.persisted?
|
41
41
|
# These are not getting initialized for some reason, so set using what is passed in
|
42
42
|
@defaults.each_pair do |k, v|
|
43
|
+
next unless v.is_a?(::ActiveRecord::Base)
|
43
44
|
meth = k.to_s
|
44
|
-
|
45
|
+
next unless meth.end_with? '_id'
|
46
|
+
rec.send("#{meth[0...-3]}=", v)
|
45
47
|
end
|
46
48
|
# This helps prevent a lookup into the db when we know there couldn't be any data yet
|
47
49
|
@model.reflections.select { |_, v| v.macro == :has_and_belongs_to_many }.keys.each do |r|
|
data/lib/ar-ondemand/version.rb
CHANGED