We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496f8bb commit 2acf099Copy full SHA for 2acf099
lib/torque/postgresql/associations/association.rb
@@ -11,6 +11,10 @@ def inversed_from(record)
11
@inversed = self.target.present?
12
end
13
14
+ def skip_statement_cache?(*)
15
+ super || reflection.connected_through_array?
16
+ end
17
+
18
private
19
20
def set_owner_attributes(record)
lib/torque/postgresql/associations/preloader/association.rb
@@ -33,6 +33,7 @@ def run_array_for_has_many
33
ids.each { |id| records[id].concat(Array.wrap(record)) }
34
35
36
+ records.default_proc = nil
37
owners.each do |owner|
38
associate_records_to_owner(owner, records[owner[owner_key_name]] || [])
39
lib/torque/postgresql/version.rb
@@ -1,5 +1,5 @@
1
module Torque
2
module PostgreSQL
3
- VERSION = '1.1.7'
+ VERSION = '1.1.8'
4
5
0 commit comments