trestle-active_storage 0.0.1.pre.1 → 0.0.1.pre.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: 13e31341f7353ec3b05de354b4c72a8d438fb4ecce73fadd240a26c58e980f1a
4
- data.tar.gz: 8f228fe30a74b0442de98b8f9a8905941af3da727f471ee308efcbd149c5278e
3
+ metadata.gz: d2381ac93a2a475bf06721c11b5f1e12c0f700dbe2d816807eafc17a29e8b146
4
+ data.tar.gz: 5cc4f0111a992af084cbad5913710e6b21d4677d67ff25a3ed839bba491d3bef
5
5
  SHA512:
6
- metadata.gz: 9182615711e63e73f8cf29e4652dce6b1ac1e557613e3b77f8f2db0e3fbdc7fbdef1b69b6efa08f8176f3ab07ef2aac8cdce5348e50857f9429bb6d8debfb62e
7
- data.tar.gz: bee83d9db02dbbc1d847b6b1718d83a61633901a22fc67dc98a04e0bb2e12f1c578d431d383ae3f74a6c4b495d77c00abfae3bed6f98bdf7c4738fc4e4717951
6
+ metadata.gz: e37ade89aeba3ff240f18508c6b5660e39fbaa53141c62bd307e0fb83532dcd80a739815b4dc61fde03cb133e8574c2f50dafebb4d635c8b5272e1bc43aff570
7
+ data.tar.gz: 2419f15ce7e7cf50b017548ffcd406775adf1828a33d244fd0416ab29017b22503264d01e4590155a5be095fe63be23e0ffbd8b40aa20d96e9663551ccfa715b
@@ -2,7 +2,7 @@ module Trestle
2
2
  module ActiveStorage
3
3
  module Builder
4
4
  def active_storage_fields(&block)
5
- admin.active_storage_fields = block
5
+ admin.active_storage_fields = block || []
6
6
  end
7
7
  end
8
8
  end
@@ -4,7 +4,11 @@ module Trestle
4
4
  attr_writer :active_storage_fields
5
5
 
6
6
  def active_storage_fields
7
- instance_exec(&@active_storage_fields)
7
+ if @active_storage_fields.nil?
8
+ []
9
+ else
10
+ instance_exec(&@active_storage_fields)
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module ActiveStorage
3
- VERSION = '0.0.1.pre.1'
3
+ VERSION = '0.0.1.pre.2'
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.1
4
+ version: 0.0.1.pre.2
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-08 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails