tramway-core 1.14.2.4 → 1.14.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4097c0630d7dcef57b863d746510bb92826a738381c9f14aeb6dd60ac88ad5a9
|
4
|
+
data.tar.gz: b554f9e93d3b656237764ab63f728e4042f36e239d1ddafa346fcc9fcc9dd377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94489bf533fa58eaf2a10940dc38afa24d4f6e92247b4979f7557c2d895bcdf3e6700a4634024f6df34a9a801c28581a13320815985890b9398fa44266b99e6c
|
7
|
+
data.tar.gz: 65f11aca85093709c7f87a669777fdce19b4a3797d9c7c369ad6dcbe0c26efbcec8ca67e26f1f5ce13a7d1a6b8f441350c324a7b0090c30a695a1c71dbdf2fe5
|
@@ -54,6 +54,10 @@ class Tramway::Core::ApplicationDecorator
|
|
54
54
|
|
55
55
|
define_method association_name do
|
56
56
|
association = object.class.reflect_on_association(association_name)
|
57
|
+
if association.nil?
|
58
|
+
error = Tramway::Error.new(plugin: :core, method: :decorate_association, message: "Model #{object.class} does not have association named `#{association_name}`")
|
59
|
+
raise error.message
|
60
|
+
end
|
57
61
|
class_name = if association.polymorphic?
|
58
62
|
object.send(association_name).class
|
59
63
|
else
|
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.3
|
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-
|
11
|
+
date: 2019-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: audited
|