trestle-active_storage 0.0.1.pre.2 → 0.0.1.pre.3

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: d2381ac93a2a475bf06721c11b5f1e12c0f700dbe2d816807eafc17a29e8b146
4
- data.tar.gz: 5cc4f0111a992af084cbad5913710e6b21d4677d67ff25a3ed839bba491d3bef
3
+ metadata.gz: e11a60cc2b7ba1cde176e8c2da26f31649978ab0c3d78d93386655988aa1b3aa
4
+ data.tar.gz: c6a5d0e5dce902e940ea0b835b802cd8b990a368d84f0250f013a42900067df0
5
5
  SHA512:
6
- metadata.gz: e37ade89aeba3ff240f18508c6b5660e39fbaa53141c62bd307e0fb83532dcd80a739815b4dc61fde03cb133e8574c2f50dafebb4d635c8b5272e1bc43aff570
7
- data.tar.gz: 2419f15ce7e7cf50b017548ffcd406775adf1828a33d244fd0416ab29017b22503264d01e4590155a5be095fe63be23e0ffbd8b40aa20d96e9663551ccfa715b
6
+ metadata.gz: 71d4a575d890ac38e29c3d8cdc5d7472fdf6eaf5852ba546198a03789d864fab460e79e8bf3990e300d51ac184aecdc11009dfe70e25cbc265b11db2b313e3c3
7
+ data.tar.gz: 11cd617c1ca1f47c44f4fbfac0c5ebd1545a5b0ff0df28f87f02953eb0fb5612862acc856044c81911b1d4dadfd00ccf659313f6f146162f19a86e95874e62f8
@@ -2,10 +2,10 @@
2
2
  <% if attachment.attached? %>
3
3
  <div class="active-storage__preview">
4
4
  <% if attachment.blob.image? %>
5
- <%= link_to image_tag(attachment.blob.service_url, class: 'active-storage__image'),
6
- attachment.blob.service_url, target: 'blank' %>
5
+ <%= link_to image_tag(main_app.rails_blob_url(attachment), class: 'active-storage__image'),
6
+ main_app.rails_blob_url(attachment), target: 'blank' %>
7
7
  <% else %>
8
- <%= link_to(attachment.blob.service_url, class: 'active-storage__link') %>
8
+ <%= link_to(main_app.rails_blob_url(attachment), class: 'active-storage__link') %>
9
9
  <% end %>
10
10
  </div>
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module ActiveStorage
3
- VERSION = '0.0.1.pre.2'
3
+ VERSION = '0.0.1.pre.3'
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: 0.0.1.pre.2
4
+ version: 0.0.1.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Venneman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-09 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails