tramway-user 2.1.0.2 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/decorators/tramway/user/user_decorator.rb +11 -0
- data/config/locales/ru/models.yml +0 -6
- data/lib/tramway/user/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 037bd8cc7315589e051981edc5d56f47c3861a0b1de688f75972bbb22f360e58
|
4
|
+
data.tar.gz: 750a4df65ca848a95206769a917aa0e99033de1bdeaba0807ee6b13fc8dd37eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99dbc5c95d5bd7669a20c1845b1bf1f44dafcb3b0f00b143dfdfa83d5e1b4c601f3c4890c49963882d436ca7a4102d324b6041100e82e3978b39d3683773b4f6
|
7
|
+
data.tar.gz: 0a441f4d740be4e032eeb9b3c7bc4e5c10fe48924e9d310d7128d4255fd904137839a366328aff8c953300e2874a8c1b9ce0dca213d059f405ec19f76f40ca1f
|
data/README.md
CHANGED
@@ -9,8 +9,19 @@ class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
|
|
9
9
|
def list_attributes
|
10
10
|
[:email]
|
11
11
|
end
|
12
|
+
|
13
|
+
def show_attributes
|
14
|
+
[:email, :first_name, :last_name, :role, :created_at, :updated_at]
|
15
|
+
end
|
12
16
|
end
|
13
17
|
|
18
|
+
delegate :first_name, to: :object
|
19
|
+
delegate :last_name, to: :object
|
20
|
+
delegate :email, to: :object
|
21
|
+
delegate :role, to: :object
|
22
|
+
delegate :created_at, to: :object
|
23
|
+
delegate :updated_at, to: :object
|
24
|
+
|
14
25
|
def name
|
15
26
|
"#{object.first_name} #{object.last_name}"
|
16
27
|
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: 2.1.
|
4
|
+
version: 2.1.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: 2020-
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|