volt-user-templates 0.0.4 → 0.0.5

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: ccde30c2d9bb255e483768ad5ae9acab1efbc603
4
- data.tar.gz: f691ab5d2195ad4b5b5ada0440cc1c1b85fed0bb
3
+ metadata.gz: b4d029535f5294e5b4c9801ac48afedce1990c40
4
+ data.tar.gz: a032957af89451c2b223d2868e00254fd4357a21
5
5
  SHA512:
6
- metadata.gz: c397846daa28231c240443843e088697ad4420436ebe26555b9b939d88200fc2b280ced58f5797bc55e7a7e3b26788c7f5dbad058a6572432b8df484273bfa5e
7
- data.tar.gz: 1ca32f9d08cf93ce2fae53ce3c03ffe8eea0caf63bf74117d463f0fd761a9e36798e09ae3aa025f8733f16d881c08b5138377470ffe1e5061af591c7c6871dfd
6
+ metadata.gz: f15ff58c3ba18cef23f7795513e68f27614a0d3442da2c25fa9e3ca3bd402908dcc27b1c108e436d05952eceea95c8530eb2f26dce2d7f0ace8cff3061d21356
7
+ data.tar.gz: 4e9083e8798e0c998f66d55f9e4d0d7c4038882239e1f4fd06ec69f9a1748d5af1e14b1c1fe9e93f8f0326087514345c21176121270d71852cc67c45e175a679
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,8 +1,9 @@
1
1
  module UserTemplates
2
2
  class MenuController < Volt::ModelController
3
3
  def show_name
4
- user = Volt.user
5
- user._name.or(user._email).or(Volt.user._username)
4
+ Volt.fetch_user.then do |user|
5
+ user._name.or(user._email).or(user._username)
6
+ end
6
7
  end
7
8
  end
8
9
  end
@@ -1,6 +1,6 @@
1
1
  <:Body>
2
2
 
3
- {{ if Volt.user }}
3
+ {{ if Volt.fetch_user }}
4
4
  <li class="dropdown">
5
5
  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
6
6
  <span class="glyphicon glyphicon-user"></span>
@@ -1,5 +1,3 @@
1
- require "volt/user/templates/version"
2
-
3
1
  class Volt
4
2
  class User
5
3
  class Templates
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-user-templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: volt-fields