activerecord_follow_assoc 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7232d2cc3eed7b703ec45063e41629c6bccefab15cd13bb1eaddc52b676b9428
|
|
4
|
+
data.tar.gz: 2ecf54dea6ae4468505b34ae015f5ef4d05d2fc83dd09b6085a5e53a36510d70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 753e85a496aae29bff51b22af45c867cfea28ba6874d5d73500be667bf4220feb37bb2d9c068f4c2cbd80d1b96c0fe1255a20288088ad6930b23de07cec54400
|
|
7
|
+
data.tar.gz: 5e93ee4daaa9b9f30c3df7c69a040586b739316258e2a4cb040ea0aa7278b172ad6a034dfbd9169059f6a2a06b5e50609c7c2af7f9d3e1da499d36a08184628d
|
data/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Doing this without follow_assoc can be verbose, error-prone and less efficient d
|
|
|
44
44
|
|
|
45
45
|
## Installation
|
|
46
46
|
|
|
47
|
-
Rails 4.1 to
|
|
47
|
+
Rails 4.1 to 8.1 are supported with Ruby 2.1 to 3.4. Tested against SQLite3, PostgreSQL and MySQL. The gem
|
|
48
48
|
only depends on the `activerecord` gem.
|
|
49
49
|
|
|
50
50
|
Add this line to your application's Gemfile:
|
|
@@ -82,7 +82,7 @@ module ActiveRecordFollowAssoc
|
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
if ActiveRecord.gem_version >= Gem::Version.new("4.2")
|
|
85
|
+
if ActiveRecord.gem_version >= Gem::Version.new("4.2") && ActiveRecord.gem_version < Gem::Version.new("7.2")
|
|
86
86
|
def self.normalize_association_name(association_name)
|
|
87
87
|
association_name.to_s
|
|
88
88
|
end
|
|
@@ -165,7 +165,7 @@ module ActiveRecordFollowAssoc
|
|
|
165
165
|
|
|
166
166
|
if poly_belongs_to?(actual_source_reflection)
|
|
167
167
|
if reflection.options[:source_type]
|
|
168
|
-
|
|
168
|
+
reflection.options[:source_type].safe_constantize
|
|
169
169
|
else
|
|
170
170
|
if on_poly_belongs_to.nil?
|
|
171
171
|
msg = String.new
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord_follow_assoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxime Lapointe
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -174,7 +174,7 @@ licenses:
|
|
|
174
174
|
metadata:
|
|
175
175
|
homepage_uri: https://github.com/MaxLap/activerecord_follow_assoc
|
|
176
176
|
source_code_uri: https://github.com/MaxLap/activerecord_follow_assoc
|
|
177
|
-
post_install_message:
|
|
177
|
+
post_install_message:
|
|
178
178
|
rdoc_options: []
|
|
179
179
|
require_paths:
|
|
180
180
|
- lib
|
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
190
190
|
version: '0'
|
|
191
191
|
requirements: []
|
|
192
192
|
rubygems_version: 3.4.10
|
|
193
|
-
signing_key:
|
|
193
|
+
signing_key:
|
|
194
194
|
specification_version: 4
|
|
195
195
|
summary: Follow associations within your ActiveRecord queries
|
|
196
196
|
test_files: []
|