tramway-user 1.1.7 → 1.1.8

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: 98adb37dea975a38555652907a4c3c6b2d0d4f2e183df74dde89497ca5e653d9
4
- data.tar.gz: 6b516b178f2a5e5b4e0480fb989c278737f415cfd8d94c9d56967dcf6333a034
3
+ metadata.gz: 52554de74bdeb3f23649eca7c1c601a332d7aef94169c05afa8bc80c750af0d3
4
+ data.tar.gz: e91e191bd0a0c872c459b42e7fe9a2a1fd56a4ec13c6d4f1843fb61409aefd17
5
5
  SHA512:
6
- metadata.gz: 1f01ac0a84e744867fd91bf7d23342aec0d4f65a632fe4d5b40623bafc7ef2c2ba7e35c6cde668080dabe396f2e4e49876b77f8568c317d3c87ea6b944140941
7
- data.tar.gz: 4ae6f07af4b077bce4f6f698bfa5c6074351556c4557d3f6894300795c9da79f18cffdc350c52e46fbfdb1fa177de2b5029bfda7fdd0b8139c1ebd5e79ddd8e5
6
+ metadata.gz: f1b303f599836906e3c4303821c5a4296fd51de0b278f3b018450c81bb2a1899e87a812560a47ea18abf564270b4a5a2bd3b132f8c7bc701cb9f7a678f83a005
7
+ data.tar.gz: 71814f19adf0a5ebf20605ed39bd5889587481c6aad4fe3067f57c0118ae7426e59a5ecc5b5aadfbf8ac8c217b504544ed0a56f78c707a07c6acd17401a98f9a
@@ -7,4 +7,7 @@ class Tramway::User::User < ::Tramway::Core::ApplicationRecord
7
7
  def admin?
8
8
  role.admin?
9
9
  end
10
+
11
+ scope :admins, -> { where role: :admin }
12
+ scope :simple_users, -> { where role: :user }
10
13
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module User
3
- VERSION = '1.1.7'
3
+ VERSION = '1.1.8'
4
4
  end
5
5
  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: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-04 00:00:00.000000000 Z
11
+ date: 2019-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt