tramway-admin 1.7.6 → 1.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac07bbfbf6424453b9d607a0ae426372ab6c76ddf51621ecfc5d30cfdac9d7c
4
- data.tar.gz: ed842b99413e91d94024e5af35a3f9d0103c7a4e47b1510143c44d849b720e59
3
+ metadata.gz: 5951aa239c762feccc7e6900ad23020370ed15321a740209bed9046a06e368f6
4
+ data.tar.gz: 82a691f86ef97c7a410ef8eaefbf5a47e75a971d8804eae4ee35c1c5ec886db1
5
5
  SHA512:
6
- metadata.gz: 021465d56534fe56c3b9d7d1a51ff0a2d0cc0bb7be5b3315cd12d1d373356afb72527184517d295944ee90b65e1e48e4ec7e7ad65361a7705263afa2d44754c9
7
- data.tar.gz: 32c7a87104bf8c4ca83dfe57c57dc12d3ca19219b6c6516e4183ea176476e907a85f6e96b25dc231837811aac325d155548786f10a2d27f6f850c2bbc75e0a18
6
+ metadata.gz: a29e96ba5e519eb5082e0f0231eeee9ddbe22d586180788eeb23ec14616d841afb0a2c35cbe232ad4f2396f40e57998f113085e3c07033fa0799baff2ba25f07
7
+ data.tar.gz: 2852ce10ff0364faa1bb3814e0075a684b0e53953bdc0748a6ea32a86792fc9e6209a9fba220fa3f4d0a12732926a270402b0263590d635a4a3aa5fed61763c4
@@ -40,7 +40,9 @@ module Tramway
40
40
  end
41
41
 
42
42
  def application
43
- @application = ::Tramway::Core.application&.model_class&.first
43
+ if ::Tramway::Core.application
44
+ @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application
45
+ end
44
46
  end
45
47
 
46
48
  private
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.7.6'
3
+ VERSION = '1.7.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-kaminari-views