administrate-field-active_storage 0.3.1 → 0.3.2

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: 1ea48021b9c4480f394cc61655e5e0a51c8ee6f9723f97902902642668a9ea88
4
- data.tar.gz: b9691a2f4b65e00a559dbd5ec52e73b1bac589e98403a6f135fdcd0f09953bff
3
+ metadata.gz: 64b33a96266a15db1be6623e30f3cd194169efa9ccc893ac03136da0c3721e38
4
+ data.tar.gz: bf7d12d3084e8955f14abc20a2d19b5ce76abe7445d9aab5cb31c3367ebba957
5
5
  SHA512:
6
- metadata.gz: c5409c4400e684e023b287144b7415f51a77d6800df33c17eeb6f805de5381900e1d4947413e3d64939e85fd2009c8ff6ebeecbcde864017fc2c99f11c668650
7
- data.tar.gz: cf96c0b3b886a87fbe4774c2b2e3658d56c64375b34eebcb1d2ff3240dafb9ccf0a96debab40b3ce675b7869b6dd5cc6d0cc114f11368bcea27da35f5e8e3c23
6
+ metadata.gz: e551359ad5008217a52ab7295053f84b5ce4488f324c8eaa4e4595a43e90791eb3dea17ff43327bba61e536675d20e26b4c4be1e030c0c79878ee2e1ac708bdb
7
+ data.tar.gz: 027fe2605c468b7c0cc9fbc48eb404922108c05c1602ca4f6953729a1713aace84b5b82eca8fc923da6c7865281447be158da91827622dbbb98b6e856c7affda
data/README.md CHANGED
@@ -11,7 +11,7 @@ Add `administrate-field-active_storage` and `mini_magick` to your Gemfile (rails
11
11
 
12
12
  ```ruby
13
13
  gem 'administrate-field-active_storage'
14
- gem 'mini_magick'
14
+ gem "image_processing"
15
15
  ```
16
16
 
17
17
  for rails 5.x use the following
@@ -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 = "0.3.1"
5
+ gem.version = "0.3.2"
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"
@@ -23,10 +23,11 @@ controlled via a boolean local variable.
23
23
  [x, y]
24
24
  Maximum size of the ActiveStorage preview.
25
25
  %>
26
-
27
- <div>
28
- <%= render partial: 'fields/active_storage/preview', locals: local_assigns %>
29
- </div>
26
+ <% if field.show_display_preview? %>
27
+ <div>
28
+ <%= render partial: 'fields/active_storage/preview', locals: local_assigns %>
29
+ </div>
30
+ <% end %>
30
31
 
31
32
  <div>
32
33
  <%= link_to 'Download', field.blob_url(attachment), title: attachment.filename %>
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: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamad AlGhanim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate