tramway-user 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/decorators/tramway/user/user_decorator.rb +17 -0
- data/lib/tramway/user/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55a7b8be4a3acc69e6e0e78d44cfc4d21d1b3a54cfc5aa75ec6febb9c689bb39
|
4
|
+
data.tar.gz: f547e3e83264ee3d55fa3f63eedd6ae4b2864021665a2c44a5d526e6c976e569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca5c9c1df0ba53bea807ef65472065c412200e9124b093fc928e6ed7fe47abdaf9bf35ef8bd344c4fe5797973ef262dd9caff94f56d4075212765bd3a3055dc
|
7
|
+
data.tar.gz: f1579cf1eafffb5ac7e4659710d636f2830cea8470e1b175c72e1703f595dc955f51f8487554c6bb1337d7ec0464b4a83d60beaf7d3239d90f6e9f6ce419d5f4
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
|
2
|
+
class << self
|
3
|
+
def collections
|
4
|
+
[ :all ]
|
5
|
+
end
|
6
|
+
|
7
|
+
def list_attributes
|
8
|
+
[ :email ]
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def name
|
13
|
+
"#{object.first_name} #{object.last_name}"
|
14
|
+
end
|
15
|
+
|
16
|
+
delegate :email, to: :object
|
17
|
+
end
|
data/lib/tramway/user/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- app/controllers/tramway/user/application_controller.rb
|
71
71
|
- app/controllers/tramway/user/web/application_controller.rb
|
72
72
|
- app/controllers/tramway/user/web/sessions_controller.rb
|
73
|
+
- app/decorators/tramway/user/user_decorator.rb
|
73
74
|
- app/forms/tramway/user/session_form.rb
|
74
75
|
- app/helpers/tramway/user/application_helper.rb
|
75
76
|
- app/helpers/tramway/user/web/application_helper.rb
|