u-authorization 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/authorization.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2d0d221c7afbf5307e6de989945f359e72432ecdff115f4da85a6d51df147f5
|
4
|
+
data.tar.gz: 595029aef79e60b483373a3b7ad4eef586bc90944bc8533a1640575bccbe42c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8c8d6e819e296f085c045af9c476941c9d3b2faf9269eb7ee7394321908257a1586b267c75dccb6a4b8d75c112ec35b31c3af26722c48dec2a6e99f77e74f05
|
7
|
+
data.tar.gz: ef58ac9c0ff6b4aa1ed2ccf75fb67af13b9891e886f33a65a44bd64715ccbd49586adf2f9e12553fb17ec70374af5433aef69dccbcea1788a405a9c8ff41b080
|
data/authorization.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Authorization
|
4
|
-
VERSION = '1.
|
4
|
+
VERSION = '1.4.0'
|
5
5
|
|
6
6
|
MapValuesAsDowncasedStrings = -> (values) do
|
7
7
|
Array(values).map { |value| String(value).downcase }
|
@@ -114,6 +114,7 @@ module Authorization
|
|
114
114
|
@user ||=
|
115
115
|
context.is_a?(Hash) ? context[:user] || context[:current_user] : context
|
116
116
|
end
|
117
|
+
alias_method :current_user, :user
|
117
118
|
end
|
118
119
|
|
119
120
|
class Model
|