tramway-user 2.1.3.1 → 2.1.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e851bd295fc9e5b424e7fed3f268bf596f501fcf384f128cd75c3970e6ed007
|
4
|
+
data.tar.gz: 3f6c194a8612bd6f9dd60a9dfa829ba246efcab9726cc21c320883d8ed0ffb7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee709ebed4e014d70b51aa7109300749546e0ee2e682aa4b73aafc96b30cf29b2803c75c5fa81d7560d350b28fd83bfcbf087cabfd850d66eb34064becaa670
|
7
|
+
data.tar.gz: 10a39f9802133bf9786518bb4749afcdfd70bded4264cdba20f1c41b33d928cd68c66031997e0bc89d701f14276a6e1e3f8e806a94e10f19266a5e22335f142a
|
@@ -23,7 +23,7 @@ class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
|
|
23
23
|
|
24
24
|
decorate_association :social_networks, as: :record if defined? Tramway::Conference
|
25
25
|
|
26
|
-
delegate_attributes :first_name, :last_name, :email, :phone, :role, :created_at, :updated_at
|
26
|
+
delegate_attributes :first_name, :last_name, :email, :phone, :role, :created_at, :updated_at, :admin?
|
27
27
|
|
28
28
|
def name
|
29
29
|
"#{object&.first_name} #{object&.last_name}"
|
@@ -6,6 +6,7 @@ class Admin::Tramway::User::UserForm < ::Tramway::Core::ApplicationForm
|
|
6
6
|
properties :email, :password, :first_name, :last_name, :role, :phone
|
7
7
|
|
8
8
|
validates :email, email: true
|
9
|
+
validates :email, uniqueness: true, if: 'active?'
|
9
10
|
|
10
11
|
def initialize(object)
|
11
12
|
super(object).tap do
|
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.3.
|
4
|
+
version: 2.1.3.2
|
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-04
|
11
|
+
date: 2020-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|