ama_layout 8.0.1 → 8.0.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: e79c9015f7a449f6c55e302d676195a789b2ad48
4
- data.tar.gz: bbde9f2fd9b4acede9286eec73c6a2cc20ad7739
3
+ metadata.gz: ba422e9a28b42d0d5b030db721a5f73bc55733ef
4
+ data.tar.gz: 354156b125b79739e813462d65b4fea6b435191d
5
5
  SHA512:
6
- metadata.gz: cc5989669fbf6f11aa6f937325b4588f26692aee34598e7b82b32f47c602156f4e94e0beadb7c382d9d4347f365b2efdf1df55e26f9a92b00732c5ab2119a26a
7
- data.tar.gz: e0ef2b04a87c87c55d45393e7cfce8af9d6c0bb0e2a1f94524860ed1b28665628d5f37fa0ed2f1691d5588975566310a0c4a6045994eaa9e8f9200720fc7071a
6
+ metadata.gz: 30bd40fa39479ff6a31c1c628720701e65fe7955f6afc1bfff473059e49b86858af2c19cd5d41022be4e6a8be95f3322afe2e9833280272c6b15906a8b8d97ad
7
+ data.tar.gz: 880d1ae33fc28d6ae6158a18570d4301529b41ede09eefa64b02935d620039029218df8c4a6cfcd468fbb736624e85c9ef9dc5ee449c7917876810d9054c4ea7
@@ -3,11 +3,11 @@ module AmaLayout
3
3
  include AmaLayout::DraperReplacement
4
4
 
5
5
  def items
6
- object.items.map { |i| i.decorate }
6
+ object.items.map(&:decorate)
7
7
  end
8
8
 
9
9
  def display_name_text
10
- name_or_email.try(:truncate,30)
10
+ name_or_email.try(:truncate, 30)
11
11
  end
12
12
 
13
13
  def sign_out_link
@@ -16,7 +16,7 @@ module AmaLayout
16
16
  end
17
17
 
18
18
  def top_nav
19
- h.render partial: "ama_layout/top_nav", locals: { navigation: self } if items.any?
19
+ h.render partial: "ama_layout/top_nav", locals: { navigation: self } if user
20
20
  end
21
21
 
22
22
  def sidebar
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '8.0.1'
2
+ VERSION = '8.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.1
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2017-10-05 00:00:00.000000000 Z
21
+ date: 2017-10-06 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails