itsf_backend 4.2.2 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28d0bd304e0e682bac6990bfa41599b64b8bb638
4
- data.tar.gz: 5d5128e3e14ea1d24bca7d651080a2f7127a56fe
3
+ metadata.gz: da22376c2f48960315f77bfd6b585ea8135a8c79
4
+ data.tar.gz: bccb2747e6965e42d649d291be497f70151619a7
5
5
  SHA512:
6
- metadata.gz: d6f8281c674a187719d5bdcb02f1b3f42ae0c082618edd04b064dfebc6dbe2e4a102e6859fbb144afca3990052120c7732126f408236e0921b595f9a00ae9d39
7
- data.tar.gz: a43efffda05ef2acdf895992b0cab8bbc246ea23f842f4d0968ee7889aac67f2d05315599e6ac426494d367dfb952740e55c9780413167758ee5687f6bb8aff9
6
+ metadata.gz: 86d5c8892cd6ab3e963d40b72aa39677795a12f3b5c708fd194b1f924f6413a9abc9050be8f4197b51568a03378fb1125b386258c7b22145ec358c9037f5fe01
7
+ data.tar.gz: 64340934b6e5bd8a47def89263009ce36a91a6b647691dfa84ecb64d51097817ce5baffcba2f62dffd7fb5f41b04620c130244a6ad076134d54674de48e715fa
@@ -21,8 +21,9 @@ module Controller
21
21
  if respond_to?(:resource_class, true)
22
22
  breadcrumbs << { label: resource_class.model_name.human(count: :other), url: url_for(action: :index), link_html_options: {}, li_html_options: {} }
23
23
  end
24
+
24
25
  if @resource.present? && @resource.persisted?
25
- breadcrumbs << { label: @resource.try_all(*Itsf::Backend.resource_title_methods), url: url_for(@resource), link_html_options: {}, li_html_options: {} }
26
+ breadcrumbs << { label: @resource.try_all(*Itsf::Backend.resource_title_methods), url: url_for(action: :show, id: @resource.to_param), link_html_options: {}, li_html_options: {} }
26
27
  end
27
28
 
28
29
  if respond_to?(:service_class, true)
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '4.2.2'
3
+ VERSION = '4.2.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itsf_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails