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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e351faed30c8315acb3e638156cc8084fea706599af9939cdd15621a004105d
|
4
|
+
data.tar.gz: 47e0fd92dc1b9b7266703e7c07f221f7367930d26bdab4d284d16f573735e1e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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"),
|
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.
|
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-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|