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: f7412ca796c62402d9bfafb6b5bdcc3746682cad68b21650d82b435bdee616da
4
- data.tar.gz: e803ee6409ea87e6abfdc715356b43060669d364b7328fe9d3fc1d2ff7803524
3
+ metadata.gz: 7e851bd295fc9e5b424e7fed3f268bf596f501fcf384f128cd75c3970e6ed007
4
+ data.tar.gz: 3f6c194a8612bd6f9dd60a9dfa829ba246efcab9726cc21c320883d8ed0ffb7a
5
5
  SHA512:
6
- metadata.gz: de9bd7d925cf9c19903a281bf31f3b2839af0957b064ca06c0b94c83b3e5a22e28e2e076236c66e02fc40eba9244cb227863df98df99a099c8772ea28cae4c9d
7
- data.tar.gz: b38da1e4a4718c2b12de89ecd20b01728a6eda2a134cb341e12d88e2abc86c000580bb7b33924b4131636475845f13adaf6e6947adb570f42b9fe18641bac4ae
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module User
5
- VERSION = '2.1.3.1'
5
+ VERSION = '2.1.3.2'
6
6
  end
7
7
  end
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.1
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-13 00:00:00.000000000 Z
11
+ date: 2020-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt