tramway-admin 1.11.1 → 1.11.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: e0b72f16b791b5f4e02438b86c0158f146f67ec8c669e76f8394cfb8d2755b6a
4
- data.tar.gz: 1fe10f082766bc7965a9457413093244a8e93c01c2317c7c163eb877ecfabab4
3
+ metadata.gz: 6a31499a7c42369723b4186f89bde96d8aefd569c3a8648ced5b1deae88eebaf
4
+ data.tar.gz: 22599f9b8a0ac187169c99e420cb9d3089eaf7e2a1d44c871937507cedfdab65
5
5
  SHA512:
6
- metadata.gz: 6576cc72537fe1db1c5e3d174d16ef35d9e36204ee65fac8443432f714bdb8aa2c5be1553a6a7cd7cf1e8a118b47d319851a765a8fde5ca83435842dffa52bbf
7
- data.tar.gz: 4d6c24eeb41db4922aba8800d04a04e65769d16182e8d686e804b069ec71103d0523d8360bd43e0bc280b9995c7cf4c55c243e71dd5f261ca5703a7bb65d4e16
6
+ metadata.gz: f27f92268be367bfea3d906927e126a76d4b55df24d187d74ce2f45d08444ae2fa28c612cf71411452218cde7ef542d3a353f614a9a727cbc871e941bba568be
7
+ data.tar.gz: 8ba227bc177d84069348dd849113bc6e869a75ee944849637b7e9323f6b35584a40541f0e75203aa0b313f55404a93005f85cdbf764b2eab3952ba16f3d80d10
@@ -6,4 +6,7 @@ class Tramway::User::User < ::Tramway::Core::ApplicationRecord
6
6
  def admin?
7
7
  role.admin?
8
8
  end
9
+
10
+ scope :admins, -> { where role: :admin }
11
+ scope :simple_users, -> { where role: :user }
9
12
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.11.1'
3
+ VERSION = '1.11.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.1
4
+ version: 1.11.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: 2019-04-03 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: bootstrap-kaminari-views