activerecord-belongs_to_if 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 +4 -0
- data/lib/active_record/belongs_to_if/extend.rb +5 -1
- data/lib/active_record/belongs_to_if/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0e3a59771596b11902313635f2726d73f47438
|
4
|
+
data.tar.gz: 2992a62ff7e5d77bb75642a280d0b4d242d8fbc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576351abf2e53fba8d9374ca71ada92ea9a4cc9ef3803a42c64070f9a2658fecbcc240cdf07cae55eaa1afce388e585b9266e36167751e0f88fe348bf86fc131
|
7
|
+
data.tar.gz: 8b2407e2c8690f5314b561307297b977d417e935b7bcb69b7746c607944da083ab36a5bd50ff3ea24a67040d49ea50a4b6555dd72dbc1ad425e2ffe4b02300a2
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
ActiveSupport.on_load(:active_record) do
|
2
2
|
ActiveRecord::Associations::Builder::BelongsTo.send(:prepend, ActiveRecord::BelongsToIf::BuilderExtension)
|
3
|
-
ActiveRecord::
|
3
|
+
if ActiveRecord.gem_version >= Gem::Version.new('5.2.0')
|
4
|
+
ActiveRecord::Associations::Preloader::Association.send(:prepend, ActiveRecord::BelongsToIf::PreloaderExtension)
|
5
|
+
else
|
6
|
+
ActiveRecord::Associations::Preloader::BelongsTo.send(:prepend, ActiveRecord::BelongsToIf::PreloaderExtension)
|
7
|
+
end
|
4
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-belongs_to_if
|
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
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.11
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Allows you to manage preload condition by `:if` condition.
|