tramway-core 3.0.1 → 3.0.1.1
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: 2b99587fbe190053316f4d481dc7746599a74a11875ead37b4e3ac3836d6fd56
|
4
|
+
data.tar.gz: 4d41fa71e1107c838188fae3a2e7910fee5faf7015e24d716305181ee19bb6eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a251c2005d7b60b6b9e9bf4e14fea41d9a161975ba29be43d1749ccefcc0e992069ccaab52608209ba4d7f325e2e3144fcd0c912bb61031a29da2ce742cffdf4
|
7
|
+
data.tar.gz: 6ced496aa25871420199747b46d30c9c1289813b08d76aec995da10eace435adc1fe344491f4563dde407d35b9a2f739c10369b9406738fefd6233edccc37c0a
|
@@ -62,7 +62,7 @@ class Tramway::Core::ApplicationDecorator
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def decorate(object_or_array)
|
65
|
-
if object_or_array.class.superclass == ActiveRecord::Relation
|
65
|
+
if object_or_array.class.superclass == ActiveRecord::Relation || object_or_array.class.to_s.include?('ActiveRecord_AssociationRelation')
|
66
66
|
decorated_array = object_or_array.map do |obj|
|
67
67
|
new obj
|
68
68
|
end
|
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.1
|
4
|
+
version: 3.0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-01-
|
12
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: audited
|