administrate-field-active_storage 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03bb904e84f812c143ffd299953296173301a72e1d26b897c835bb68581978c2
4
- data.tar.gz: 88b1502b5b0f3a92d28c78e2e54621024dd3c3ff57b31ac2d53b496a9951ac43
3
+ metadata.gz: fb8203ad81a8b3db6fcce553c35464064d3d91953b695b28bd7f85125f1f710a
4
+ data.tar.gz: 8a07735ef1388e626757526398d54b13e758aa6c726a73fc648a3d8ccd0e5a76
5
5
  SHA512:
6
- metadata.gz: 35555e8d94b496e494c28f2f9c2fa24a70ee359dffb66181abf1cc079a95efd761ba0a513a4087f6db0fe0b5c7ebf3f2533a4eab5ff204c2d87d8d9bf9df7153
7
- data.tar.gz: 814f250f4eaa7e5d5dbcf05f282daf0ae3ee3544419942ec16a42881905a32f478f4e09e1b1fadd735821e902229c045ce5ef8ce70d9616a071dc47045851aa0
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.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
@@ -15,3 +15,4 @@
15
15
  - David Ma [@taikon](https://github.com/taikon)
16
16
  - Dmitry Davydov [@haukot](https://github.com/haukot)
17
17
  - Jeanine Soterwood [@littleforest](https://github.com/littleforest)
18
+ - Shouichi Kamiya [@shouichi](https://github.com/shouichi)
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.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-18 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate