authentication-zero 2.16.35 → 2.16.36

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: 0c7d60c02b34ef5a758e474ff9c232390714ef5ad51150caad56162b97f40011
4
- data.tar.gz: b694f2271ad4fe2674e804f7c03076ce76ebee3ab69c06e900677524b3d576b7
3
+ metadata.gz: 01c6ab07811e6c670432fb66c4ceb3580c69cb45c438e18a947b231d86041b35
4
+ data.tar.gz: de1d633031898842969cebc414d84c543e7efcf7675b65e2b552e5ec2c318bf3
5
5
  SHA512:
6
- metadata.gz: 206d5ce3e2fd996040b3e446ca7e32ccdfaf5bc94a430ec9ae177b1398bfbaeaca5ad60bdbf3158895668cdb1bb7f1cb3accfc6c88c5a2f04d2bde0aa96cc054
7
- data.tar.gz: 03c6c97e0793685cdc45b49783224ece1833af84cf7de6b8d40640efe5530c8d6cf26542661c4ca4b30d455a60e56b65d8f5bc5250c43f52574d2d3d24a58f97
6
+ metadata.gz: 1b1eacc6b8b9551a63d8bce3a49780f12dfa999901169e51370c34a4e272bccf885e00a5dcd69e9c163a216729fa1f1f8673ec6969613b2f4c444cbdfbd381ea
7
+ data.tar.gz: 82084da636d5b44ed85ee1c2c9c928ffe40549ecf742a93206f9d804a0bc6d4c4e63dc414fb558d4a551e7e73fc76ae96159ec45eb3cfde98d143dd4b1920aa9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## Authentication Zero 2.16.35 ##
2
+
3
+ * Adjust relationship so that account has many users
4
+
5
+ ## Authentication Zero 2.16.34 ##
6
+
7
+ * Adjust relationship so that account has one user
8
+
9
+ ## Authentication Zero 2.16.33 ##
10
+
11
+ * Add account to user by default when tenantable
12
+
13
+ ## Authentication Zero 2.16.32 ##
14
+
15
+ * Refactor account middleware for account scoping
16
+
17
+ ## Authentication Zero 2.16.31 ##
18
+
19
+ * Remove raising exception when Current.account is nil in AccountScoped
20
+
1
21
  ## Authentication Zero 2.16.30 ##
2
22
 
3
23
  * Add multi-tenant artifacts that you can use. (--tenantable)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authentication-zero (2.16.35)
4
+ authentication-zero (2.16.36)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AuthenticationZero
2
- VERSION = "2.16.35"
2
+ VERSION = "2.16.36"
3
3
  end
@@ -1,16 +1,14 @@
1
1
  class Current < ActiveSupport::CurrentAttributes
2
- attribute :session, :user
2
+ attribute :session
3
3
  attribute :user_agent, :ip_address
4
4
  <%- if options.tenantable? %>
5
5
  attribute :account
6
6
  <%- end -%>
7
7
 
8
- def session=(session)
9
- super; self.user = session.user
10
- end
8
+ delegate :user, to: :session, allow_nil: true
11
9
  <%- if options.tenantable? %>
12
- def user=(user)
13
- super; self.account = user.account
10
+ def session=(session)
11
+ super; self.account = session.user.account
14
12
  end
15
13
  <%- end -%>
16
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentication-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.35
4
+ version: 2.16.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: