volt-user-templates 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/user-templates/controllers/menu_controller.rb +3 -2
- data/app/user-templates/views/menu/index.html +1 -1
- data/lib/volt/user/templates.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d029535f5294e5b4c9801ac48afedce1990c40
|
4
|
+
data.tar.gz: a032957af89451c2b223d2868e00254fd4357a21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f15ff58c3ba18cef23f7795513e68f27614a0d3442da2c25fa9e3ca3bd402908dcc27b1c108e436d05952eceea95c8530eb2f26dce2d7f0ace8cff3061d21356
|
7
|
+
data.tar.gz: 4e9083e8798e0c998f66d55f9e4d0d7c4038882239e1f4fd06ec69f9a1748d5af1e14b1c1fe9e93f8f0326087514345c21176121270d71852cc67c45e175a679
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -1,8 +1,9 @@
|
|
1
1
|
module UserTemplates
|
2
2
|
class MenuController < Volt::ModelController
|
3
3
|
def show_name
|
4
|
-
|
5
|
-
|
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
|
data/lib/volt/user/templates.rb
CHANGED
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
|
+
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:
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: volt-fields
|