pundit-matchers 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pundit/matchers.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a107f9850cec3d77bce20866a01785d61e2504e
|
4
|
+
data.tar.gz: 1e9e2002a82f622e3355f8c138ee0c35fe4af121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19fac269273c7411d7c0bd13e02ac8cbb97993b86f8783f7e5336c0edd4533529a970500b3182f430e00094dd24804c59db907eeb0af10af10058eb88bb7eff1
|
7
|
+
data.tar.gz: 3ca539cd281d580845c05b4d41c3b3ec0cdcbd218b5aa72dba52379b049329e6e38360f1014feba0f162e96c4a8c2e38f98e70b85d1df51fe0b8b34256153bc2
|
data/lib/pundit/matchers.rb
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
require 'rspec/core'
|
2
|
-
require 'pundit/matchers/configuration'
|
3
2
|
|
4
3
|
module Pundit
|
5
4
|
module Matchers
|
5
|
+
class Configuration
|
6
|
+
attr_accessor :user_alias
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@user_alias = :user
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
6
13
|
class << self
|
7
14
|
def configure
|
8
15
|
yield(configuration)
|