tramway-admin 1.7.3 → 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tramway/admin.rb +11 -1
- data/lib/tramway/admin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f5f5a9cf682b34093259a7ac77442417d857222a15c0dbbd0ab6b0045043b5
|
4
|
+
data.tar.gz: 7700df6ea0710312a6499fb664f348f74e3e3cbad6a2e30ff8ee6767408511c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc6dda6f69b7410e74fcc98e369a28ff56a4d0491f012f4e86710537f12152627bc6c1373a2c9e3d7c812766acb1c5918e6ef59f7b3808c2b38766f8642df9c
|
7
|
+
data.tar.gz: 1fe0df3990b80bb55882f6353b7318ac81699cfc782068955523024a6dd62fc5af57983ca4cbe043f16b3593b13d1c602a95ba2fbbe24060e119488fef01d3d0
|
data/lib/tramway/admin.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'tramway/admin/engine'
|
2
|
+
require 'tramway/error'
|
2
3
|
|
3
4
|
module Tramway
|
4
5
|
User.layout_path = 'tramway/admin/application'
|
@@ -13,7 +14,16 @@ module Tramway
|
|
13
14
|
|
14
15
|
def available_models_for(project)
|
15
16
|
(@available_models[project.to_sym] || []) + "::Tramway::#{project.to_s.camelize}".constantize.dependencies.map do |dependency|
|
16
|
-
@available_models[dependency]
|
17
|
+
if @available_models[dependency].present?
|
18
|
+
@available_models[dependency]
|
19
|
+
else
|
20
|
+
error = Tramway::Error.new(
|
21
|
+
plugin: :admin,
|
22
|
+
method: :available_models_for,
|
23
|
+
message: "There is no dependency `#{dependency}` for plugin: #{project}. Please, check file `tramway-#{project}/lib/tramway/#{project}/#{project}.rb`"
|
24
|
+
)
|
25
|
+
raise error
|
26
|
+
end
|
17
27
|
end.flatten.compact
|
18
28
|
end
|
19
29
|
|
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.
|
4
|
+
version: 1.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-kaminari-views
|