inferred_crumpets 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 65e934c11162bd51c3cacc6e79ad454c9c99cb6b
4
- data.tar.gz: 62806af65991fd0172d9d525f39713b67516917d
3
+ metadata.gz: 9167b46eb1fc04129fdffc29a15d43d371e6913b
4
+ data.tar.gz: 86847a87ee2ec9d896a7df3c0d7ee0283e579e42
5
5
  SHA512:
6
- metadata.gz: 72d88d79cec9736d518534b2b1783e3494e99019bfb5d296bf7b1dc8872b24de48e6f9ad58c5a88de206ae99d90b42c351a2ef2e225c16a08f054dd1f01c2e03
7
- data.tar.gz: fd0ab2ecc00af082336b3a132bdccbb5f758b46c9eb9ef18dd597f29f870fde4953b6665bab3148da1317e08473ea063a4f767c16e7e32ae328e85dbecf7d8b3
6
+ metadata.gz: 175fb803091058b53f42145387855ca322b6f2bf13ee7e972a1af864d3804eb2e100348a5342a0bb23fc1b784462a9707e804188666033dfb1b546eacab5bea6
7
+ data.tar.gz: 306aca9396c7cb1b03567f8ce8d41f5e43b1a434ee2c17b6c765678e923597f2fdeab62da267ed6991374634da8ed84edc727f2f9a9a0093534167cfe2fd8b9f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # InferredCrumpets
2
2
 
3
+ ## 0.2.2
4
+
5
+ * [TT-3102] Fix: Show subject crumb even when action is not linkable
6
+
3
7
  ## 0.2.1
4
8
 
5
9
  * [TT-2850] Fix: Don't link to actions that have no url
@@ -52,16 +52,15 @@ module InferredCrumpets
52
52
  end
53
53
 
54
54
  def build_crumb_for_action!
55
- return unless linkable?
56
55
  return unless subject.is_a?(ActiveRecord::Base)
57
56
 
58
- if %w(new create).include?(action)
57
+ if %w(new create).include?(action) && linkable?
59
58
  view_context.crumbs.add_crumb('New', wrapper_options: { class: 'active' })
60
59
  return
61
60
  end
62
61
 
63
62
  build_crumb_for_subject!
64
- if %w(edit update).include?(action)
63
+ if %w(edit update).include?(action) && linkable?
65
64
  view_context.crumbs.add_crumb('Edit', wrapper_options: { class: 'active' })
66
65
  end
67
66
  end
@@ -1,3 +1,3 @@
1
1
  module InferredCrumpets
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Colegate
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails