inferred_crumpets 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/inferred_crumpets/builder.rb +2 -2
- data/lib/inferred_crumpets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62dd5a686657e7ac35de533b178e8a06a0523ae6
|
4
|
+
data.tar.gz: 2f2eb671e2c074abe798766c06351ad463127066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 055a30abcc20d6277d8b849751b9df67910d6f05259c8be9ea9ad85827fe2c9f6a55cb45156fa50307445ed1b10c35069dbd7d457b8849621e262034dea68ce2
|
7
|
+
data.tar.gz: b8fc00da8bfc2b6a2b025996046468ac62136f850f24032cc9b450f7d351d871916ea41613731e9c37b264726e8fca1215f80c8c8f60648bd8453f5dd941b326
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,7 @@ module InferredCrumpets
|
|
5
5
|
def self.build_inferred_crumbs!(view_context)
|
6
6
|
subject = view_context.current_object rescue view_context.collection rescue nil
|
7
7
|
return unless subject
|
8
|
-
parents = [view_context.parent_object].compact rescue []
|
8
|
+
parents = [view_context.parent_object].compact.flatten rescue []
|
9
9
|
build_all!(view_context, subject, parents)
|
10
10
|
end
|
11
11
|
|
@@ -115,7 +115,7 @@ module InferredCrumpets
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def class_with_parents
|
118
|
-
|
118
|
+
[parents.last, transformed_subject.class].compact
|
119
119
|
end
|
120
120
|
|
121
121
|
def inherited_resources?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferred_crumpets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Colegate
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|