auto_breadcrumbs 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db5a5d9098b01750c0510c78e3807fee42dc50bd
4
- data.tar.gz: b0df76255442bb13f15820b8581feca85e21f12d
3
+ metadata.gz: 21148064719659497857c84c555063f778f85bb8
4
+ data.tar.gz: 7c68a6cdd06b376532a8d791fab5b41dbc072dc2
5
5
  SHA512:
6
- metadata.gz: 28cb5e660fda4d610091970c33cbd29c08c6ae6455982e19d7a42c5e31902c37f2c79cf47a93e0d84f08327c3d831a229b6270b144f9be1268852c4087adbc0a
7
- data.tar.gz: 5f00dbea9aa60a5d5ed1d12c8da2698d1de08e98bfdfd0bf29c8c536b1866b9b83d6d7151f5ca3c423e66d777fb452d46a63669b0ce17308c37f7afe4bccb3cc
6
+ metadata.gz: 23f2fab71651cd09aec0bc0697ccabdec8271d5cd059da9786b97e06db36d34df1570b94bc1032792a929bd4047130ee233aa1563b1881b29825fb924a29acc5
7
+ data.tar.gz: 645773a0715760f57ed935afc1714f991ac33940009b680bc34e85e25a9bb576172676856fffee87f8df8b18a5a0baf14b6acd66e65e9951a4a2f9deb2938d35
@@ -18,7 +18,7 @@ module AutoBreadcrumbs
18
18
 
19
19
  unless request.path == root_path
20
20
  add_breadcrumb(resource_translation, index_path) if index_path
21
- add_breadcrumb(action_translation) unless params[:action] == 'index'
21
+ add_breadcrumb(action_translation) if action_translation
22
22
  end
23
23
  end
24
24
 
@@ -28,9 +28,11 @@ module AutoBreadcrumbs
28
28
  end
29
29
 
30
30
  def action_translation
31
- breadcrumbs_t("controllers.#{ params[:controller] }.#{ breadcrumbs_action_name }") ||
32
- breadcrumbs_t("actions.#{ breadcrumbs_action_name }") ||
33
- breadcrumbs_action_name.humanize
31
+ unless params[:action] == 'index'
32
+ breadcrumbs_t("controllers.#{ params[:controller] }.#{ breadcrumbs_action_name }") ||
33
+ breadcrumbs_t("actions.#{ breadcrumbs_action_name }") ||
34
+ breadcrumbs_action_name.humanize
35
+ end
34
36
  end
35
37
 
36
38
  def index_path
@@ -1,3 +1,3 @@
1
1
  module AutoBreadcrumbs
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_breadcrumbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Li