tramway-user 1.0.5 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/forms/tramway/user/user_form.rb +13 -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: a94cfae93f0e1f3a9be23b5e42daa817d2db537f5f6edf8ee6a308d93d2e7eb9
|
4
|
+
data.tar.gz: 666c34ff3c2c368d836d8418ea6db56f3d63e2e16f3a9016d36d22101c29024f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33b4e7e7d9abc9b659ae07c5627da79c7b1f45dde04dc7923cbe55e5f62b653f7399dd68e1a20dd591e9adf27a033991dcc63eaaae98008a58b8b985794d5a80
|
7
|
+
data.tar.gz: 5f512feb01b20b7fa0fb21e0e33f158eae013704efe501d511c5659a2ecc44389d7ae38586fe860bd556eb59dc002aa955b5d83408ab57f7eb472347f55b03c7
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Tramway::User::UserForm < ::Tramway::Core::ApplicationForm
|
2
|
+
properties :email, :password, :first_name, :last_name, :role
|
3
|
+
|
4
|
+
def initialize(object)
|
5
|
+
super(object).tap do
|
6
|
+
form_properties email: :string,
|
7
|
+
password: :string,
|
8
|
+
first_name: :string,
|
9
|
+
last_name: :string,
|
10
|
+
role: :default
|
11
|
+
end
|
12
|
+
end
|
13
|
+
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: 1.
|
4
|
+
version: '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: 2018-09-
|
11
|
+
date: 2018-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- app/controllers/tramway/user/web/sessions_controller.rb
|
71
71
|
- app/decorators/tramway/user/user_decorator.rb
|
72
72
|
- app/forms/tramway/user/session_form.rb
|
73
|
+
- app/forms/tramway/user/user_form.rb
|
73
74
|
- app/helpers/tramway/user/application_helper.rb
|
74
75
|
- app/jobs/tramway/user/application_job.rb
|
75
76
|
- app/mailers/tramway/user/application_mailer.rb
|