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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 756c7f37f8450e532d53547e256301bdb3368e6ce8b27248566a051d7a0ab880
4
- data.tar.gz: 8d089b85b9a0d4ff6b80b5088f45a35daa2fc3218897a6b02938e507210f10e2
3
+ metadata.gz: febb0b3a70dd46f389f6c152b835d5119429221993922c1ba1bc7029468e1cb7
4
+ data.tar.gz: bec1e1fba9f38d806032782af7ac0137819345c6ef72f63eee86b9786c7e5bf5
5
5
  SHA512:
6
- metadata.gz: 3b9bfe585f6ded80b0dfa17626eec1a74c6d2fc82e67b519dd0363df5baa6199681e814ca80a9240c18c9b2229aa775efecacf35bb86ba773887f049f8dd68ec
7
- data.tar.gz: 351afd5f4ab728e5313e3d57a4691b319ad5ecae8c21cc36b98cc2ccd0806ac13a00fc90545bc98617452bd96a69e183e991ae40b72db2ef8cb27ea62e080cae
6
+ metadata.gz: 4afaf0a2dca9474a4722168fed7da28568c59ef82ed227b203b1846e14fca0fa851c103af298a5c2daa8417577250f82ba0d8fbca9390f06779a3e63d8cb4b95
7
+ data.tar.gz: e206891de1e623b33883c6a95679d477040454c4e88b0fdc98bef1f0ac8abc96d06ffb4c2b8150a49b524abd86c06a28459981177733868742fbcc900a171a46
@@ -36,8 +36,8 @@ module ActiveShrine
36
36
 
37
37
  before_save :maybe_store_record
38
38
 
39
- def url(derivative=nil)
40
- file_url(derivative) || file_url
39
+ def url
40
+ file_url
41
41
  end
42
42
 
43
43
  def content_type
@@ -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
- _, attachment_class_name = resolve_attachment_class(uploader)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveShrine
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.3"
5
5
  end
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2025-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties