active_shrine 0.3.1 → 0.3.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 +4 -4
- data/lib/active_shrine/attachment.rb +2 -2
- data/lib/active_shrine/model.rb +1 -1
- data/lib/active_shrine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: febb0b3a70dd46f389f6c152b835d5119429221993922c1ba1bc7029468e1cb7
|
4
|
+
data.tar.gz: bec1e1fba9f38d806032782af7ac0137819345c6ef72f63eee86b9786c7e5bf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4afaf0a2dca9474a4722168fed7da28568c59ef82ed227b203b1846e14fca0fa851c103af298a5c2daa8417577250f82ba0d8fbca9390f06779a3e63d8cb4b95
|
7
|
+
data.tar.gz: e206891de1e623b33883c6a95679d477040454c4e88b0fdc98bef1f0ac8abc96d06ffb4c2b8150a49b524abd86c06a28459981177733868742fbcc900a171a46
|
data/lib/active_shrine/model.rb
CHANGED
@@ -206,7 +206,7 @@ module ActiveShrine
|
|
206
206
|
# <tt>active_shrine_attachments.record_type</tt> polymorphic type column of
|
207
207
|
# the corresponding rows.
|
208
208
|
def has_many_attached(name, uploader: ::Shrine, dependent: :destroy, strict_loading: false)
|
209
|
-
|
209
|
+
attachment_class, attachment_class_name = resolve_attachment_class(uploader)
|
210
210
|
|
211
211
|
generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1
|
212
212
|
# frozen_string_literal: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_shrine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Radioactive Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|