tramway-user 2.1.4 → 2.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: 9e3a9d5dc9476d1d6d2cd139db65588c1546e0c35909f0950e1a87ab6831d7ab
4
- data.tar.gz: ffdf52a5440888c1fa90f5dd0698c7f20e9d6a42cad4cc8840ea5a5c822b4ece
3
+ metadata.gz: d5df2c8ff9fd3616ed52d20de965f897cca936d937439d43b8f68b404ec5a7bf
4
+ data.tar.gz: 5eddf1dbc298384c418a0941ebc9a8c1307f6d8e279e13f19b18e06270a618ec
5
5
  SHA512:
6
- metadata.gz: 83c1df3605053ba2df3f1286764196e58bb05c890e1399efd0026f7d67d2607f2b537a09663e307fcfd1387f8484a6f50daf639a2c4c8804b7cf9bb9d479987e
7
- data.tar.gz: c798d5593d041bff2869ad595203767085acbdff739117a9b53012254b915df28e356a0f168e477834631c67699089cc96bdfd7877d6174e825dc3184d581328
6
+ metadata.gz: 3befaf4f6ece37d64c38e668d3ecc6d1e7aafd4049b1abb756813b96eee3ecc9c412f048afd3f27c07177b05cdcb3d92f47cf8a0de52a9ed02d9d08a2af84222
7
+ data.tar.gz: 95ee062de720d2d521940ce1e18d696ad877dd7c7bacb328e293bb03949c10a55ba0a51ebe3b128a83c4b11dae09c60b7e007fcdae861cdd4411c8273450dfd8
@@ -12,6 +12,10 @@ class Tramway::User::User < ::Tramway::Core::ApplicationRecord
12
12
  role.admin?
13
13
  end
14
14
 
15
+ def full_name
16
+ "#{first_name} #{last_name}"
17
+ end
18
+
15
19
  scope :admins, -> { where role: :admin }
16
20
  scope :simple_users, -> { where role: :user }
17
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module User
5
- VERSION = '2.1.4'
5
+ VERSION = '2.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.4
4
+ version: '2.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt