trestle-active_storage 2.2.0 → 2.2.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: c44e417edb5714fc68bffb7f7d1824ef49cc554254cea31127ba5a0755308cc4
4
- data.tar.gz: d52c3c2697ed19bbac09c20dbe00983120368598b8974088185853f53572e91a
3
+ metadata.gz: 2e351faed30c8315acb3e638156cc8084fea706599af9939cdd15621a004105d
4
+ data.tar.gz: 47e0fd92dc1b9b7266703e7c07f221f7367930d26bdab4d284d16f573735e1e0
5
5
  SHA512:
6
- metadata.gz: f0f5d4b67f147163c203e28a2de059ba17e4b1004a1bb6d0e00f5f13fb39e03ad4dc867a85852f6d6c0abbbab0276aac1eeaef054a77360cf8a1b9f921583bde
7
- data.tar.gz: 6c6d8ce3b34f8d2abeed4354677194d143a1fb6fcf4ecf13eecbd962c247eece4e96d4dab9cd289d820c0e5deea56dcaefc08ece6b8c46695a2c7445e45fb0b7
6
+ metadata.gz: dcf17540416899f11c90380469f1587c448d1bf82effecb32db4d5976b9356b229eaa7118479770feb21e0b24e34a73458d57629b764930f0976096ec623dd0c
7
+ data.tar.gz: eb2cced2a99499076de4b3b008f8794ade3954e03fede92685da01d7cf64d4db1b35d9236e0a89488656746549929baf13c16ad8ce4abd1a15fcd57dc5f48b16
data/README.md CHANGED
@@ -50,9 +50,19 @@ If you'd like to get up and running on Heroku, check out their [documentation on
50
50
 
51
51
  ## Contributors
52
52
 
53
- | <img src="https://avatars.githubusercontent.com/richardvenneman?s=100" width="100" alt="richard venneman" /><br />[<sub>Richard Venneman</sub>](https://www.cityspotters.com)<br />[💻](https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman) [📖](https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman) 👀 | <img src="https://avatars.githubusercontent.com/tachyons?s=100" width="100" alt="aboobacker mk" /><br />[<sub>Aboobacker MK</sub>](http://aboobacker.in/)<br />💡 | <img src="https://avatars.githubusercontent.com/PunkMaldito?s=100" width="100" alt="rafael porto" /><br />[<sub>Rafael Porto</sub>](http://euodeiovoce.com.br/)<br />[💻](https://github.com/richardvenneman/trestle-active_storage/commits?author=PunkMaldito) |
54
- | :---: | :---: | :---: |
55
-
53
+ Thanks goes out to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
54
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
55
+ <!-- prettier-ignore -->
56
+ <table>
57
+ <tr>
58
+ <td align="center"><a href="https://www.cityspotters.com"><img src="https://avatars1.githubusercontent.com/u/75705?v=4" width="100px;" alt="Richard Venneman"/><br /><sub><b>Richard Venneman</b></sub></a><br /><a href="#ideas-richardvenneman" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman" title="Code">💻</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman" title="Documentation">📖</a> <a href="#question-richardvenneman" title="Answering Questions">💬</a> <a href="#review-richardvenneman" title="Reviewed Pull Requests">👀</a></td>
59
+ <td align="center"><a href="http://aboobacker.in"><img src="https://avatars1.githubusercontent.com/u/3112976?v=4" width="100px;" alt="Aboobacker MK"/><br /><sub><b>Aboobacker MK</b></sub></a><br /><a href="#ideas-tachyons" title="Ideas, Planning, & Feedback">🤔</a></td>
60
+ <td align="center"><a href="http://euodeiovoce.com.br"><img src="https://avatars2.githubusercontent.com/u/1027961?v=4" width="100px;" alt="Rafael Porto"/><br /><sub><b>Rafael Porto</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=PunkMaldito" title="Code">💻</a></td>
61
+ <td align="center"><a href="https://github.com/hoenth"><img src="https://avatars2.githubusercontent.com/u/62977?v=4" width="100px;" alt="Tom Hoen"/><br /><sub><b>Tom Hoen</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Ahoenth" title="Bug reports">🐛</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=hoenth" title="Code">💻</a></td>
62
+ </tr>
63
+ </table>
64
+
65
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
56
66
  This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
57
67
 
58
68
  ## License
@@ -1,7 +1,7 @@
1
1
  <div class='nested-fields-container'>
2
2
  <%= builder.fields_for field_name do %>
3
3
  <div class="active-storage">
4
- <% if attachments.attached? %>
4
+ <% if attachments.attached? && builder.object.persisted? %>
5
5
  <% attachments.each do |attachment| %>
6
6
  <div class="active-storage__preview">
7
7
  <% if attachment.previewable? %>
@@ -1,5 +1,5 @@
1
1
  <div class="active-storage">
2
- <% if attachment.attached? %>
2
+ <% if attachment.attached? && builder.object.persisted? %>
3
3
  <div class="active-storage__preview">
4
4
  <% if attachment.previewable? %>
5
5
  <%= link_to image_tag(main_app.url_for(attachment.preview(resize: "300x300>")), class: "active-storage__image"),
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module ActiveStorage
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-active_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Venneman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails