dlnk_auth 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6eac4fdf6c812cd7829a997a7e18542bb4cb9ce5ee5f018f3de08773aa4c7d5
4
- data.tar.gz: 29fa2c8425b0a99827499b12c08884bd4298a5be83eb52e44c85cf2122e1ef78
3
+ metadata.gz: 563ed28cadcd52124c89750a12013d6d46a51450e74dc51563c00baf057db527
4
+ data.tar.gz: 2b0087acab9ce383bd14b0efae4b73718182d58114610f662dc09c0d874e63af
5
5
  SHA512:
6
- metadata.gz: 9f80a55a217c21373410429f9f4efdce0e857271ee788e021e98053382f470279677614e5c435613e4c608017436354f0093b49f1ccea7c67fa6b1172ef40e58
7
- data.tar.gz: bb2d174d41eba72d8adff1a6ac125d2b1ffd9e08356b8d53c58e71cbc72160e1ef002ec2f87fcc0612cdd9613a0c52447a212297971e91354cd9cd13410b44fe
6
+ metadata.gz: 7a9f3750da38ff8ec01d37535df0bcebcd7a917127a6894dbb11680b42688d26c88ffe6afba5c81831dcfb423cc504d1dfef26fa9da81a140ccac9d4dfca20d8
7
+ data.tar.gz: b2ab46592dfe4197b1827658e76eac47a9cf6732d25c0c746336b540b3ff7d62da262f38f0171d126b4c32ae92de8413557654b6eda2f0b74996dd42bcc932c8
@@ -5,7 +5,7 @@ module DlnkAuth
5
5
  attr_accessor :user_class, :email_attribute, :code_length,
6
6
  :magic_link_ttl, :session_ttl,
7
7
  :after_sign_in_path, :after_sign_out_path,
8
- :mailer_sender,
8
+ :mailer_sender, :layout,
9
9
  :rate_limit_sessions, :rate_limit_codes
10
10
 
11
11
  attr_reader :impersonation, :tenanting
@@ -14,6 +14,14 @@ module DlnkAuth
14
14
  DlnkAuth.configuration.validate!
15
15
  end
16
16
 
17
+ initializer "dlnk_auth.layout", after: :load_config_initializers do
18
+ config.to_prepare do
19
+ if DlnkAuth.configuration.layout
20
+ DlnkAuth::ApplicationController.layout DlnkAuth.configuration.layout
21
+ end
22
+ end
23
+ end
24
+
17
25
  initializer "dlnk_auth.i18n" do
18
26
  DlnkAuth::Engine.root.glob("config/locales/**/*.yml").each do |locale|
19
27
  I18n.load_path << locale unless I18n.load_path.include?(locale)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DlnkAuth
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlnk_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DALiNK