administrate-field-active_storage 1.0.0 → 1.0.1
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/README.md +4 -0
- data/administrate-field-active_storage.gemspec +1 -1
- data/app/views/fields/active_storage/_preview.html.erb +2 -0
- data/contribute.md +1 -0
- 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: fb8203ad81a8b3db6fcce553c35464064d3d91953b695b28bd7f85125f1f710a
|
|
4
|
+
data.tar.gz: 8a07735ef1388e626757526398d54b13e758aa6c726a73fc648a3d8ccd0e5a76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 651a2d4e9462ecf1bc6c1dfa2a4f9e1400777362232ca39ecbff2030816d626ffd0693b51de05c3c3bc554373222437b9c07ec2d5ac8543dd117c36a068de308
|
|
7
|
+
data.tar.gz: 2d7afc572bfb5713ce971496af0580303e27802338974c4eb3210674d89fea13d3fe3878c0422cd4ddc9a6efa32d541d0b80f694855f8984d046171f0d9abbb0
|
data/README.md
CHANGED
|
@@ -201,6 +201,10 @@ It might be necessary to add to app/assets/config/manifest.js:
|
|
|
201
201
|
```
|
|
202
202
|
When set, this takes precedence over `index_preview_size` and `show_preview_size`.
|
|
203
203
|
|
|
204
|
+
Setting this to `false` displays original images instead of variants.
|
|
205
|
+
|
|
206
|
+
Defaults to `nil`.
|
|
207
|
+
|
|
204
208
|
### index_display_count
|
|
205
209
|
|
|
206
210
|
Displays the number of attachments in the `index` action.
|
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = "administrate-field-active_storage"
|
|
5
|
-
gem.version = "1.0.
|
|
5
|
+
gem.version = "1.0.1"
|
|
6
6
|
gem.authors = ["Hamad AlGhanim"]
|
|
7
7
|
gem.email = ["hamadyalghanim@gmail.com"]
|
|
8
8
|
gem.homepage = "https://github.com/Dreamersoul/administrate-field-active_storage"
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
<% if attachment.variable? %>
|
|
4
4
|
<% if variant.nil? %>
|
|
5
5
|
<%= image_tag(field.variant(attachment, resize_to_limit: size)) %>
|
|
6
|
+
<% elsif variant == false %>
|
|
7
|
+
<%= image_tag(field.url(attachment)) %>
|
|
6
8
|
<% else %>
|
|
7
9
|
<%= image_tag(attachment.variant(variant)) %>
|
|
8
10
|
<% end %>
|
data/contribute.md
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: administrate-field-active_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hamad AlGhanim
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: administrate
|