rails_base 0.56.0 → 0.57.0
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 +4 -4
- data/app/views/rails_base/email_verification_mailer/email_verification.html.erb +3 -1
- data/app/views/rails_base/shared/_logged_in_header.html.erb +9 -1
- data/lib/rails_base/config.rb +3 -1
- data/lib/rails_base/configuration/mailer.rb +6 -1
- data/lib/rails_base/configuration/templates.rb +18 -0
- data/lib/rails_base/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64ddb52ebfed26fcec5bd3ea7e44feab2d2308591958c7e90a4cc476811332ba
|
4
|
+
data.tar.gz: d89ad080614e89f901d7d51ad22cfb1c77e32b67e0712fae1d31fa2a9b2aa746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1110d8afad68484b6a28f00c8fcbe41253984b6e3a820c2d13c6d9125c6000e2b53d114b78426b81ea73ddf12767a2e710a495bca820001c0a5f197e4c5185c
|
7
|
+
data.tar.gz: 60116d2b2d6d99f1736ef44702999ac55598085d22fc6c0cd29df9b06cd9aef2e60b0a02d17fb0201590ef4f85f6ecd95b21d6c78ca938e730cdc8ba2dbaefdb
|
@@ -1,7 +1,9 @@
|
|
1
1
|
<p>Hello <%= @user.full_name %>!</p>
|
2
2
|
|
3
3
|
<p>
|
4
|
-
Welcome to <%= RailsBase.config.app.communication_name %>.
|
4
|
+
Welcome to <%= RailsBase.config.app.communication_name %>.
|
5
|
+
</br>
|
6
|
+
<%= RailsBase.config.mailer.verification_content(@user) %>
|
5
7
|
</br>
|
6
8
|
Please finish your registration by following this <a href="<%=@sso_url_for_user%>" target="_blank"> Registration Link </a>
|
7
9
|
</br>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
</br>
|
60
60
|
<div class='row'>
|
61
61
|
<div class='col'>
|
62
|
-
<a class="btn btn_info btn-block" href="<%=RailsBase.url_routes.user_settings_path%>" role="button">Modify User</a>
|
62
|
+
<a class="btn btn_info btn-block" href="<%=RailsBase.url_routes.user_settings_path %>" role="button">Modify User</a>
|
63
63
|
</div>
|
64
64
|
</div>
|
65
65
|
</br>
|
@@ -69,6 +69,14 @@
|
|
69
69
|
</div>
|
70
70
|
</div>
|
71
71
|
</br>
|
72
|
+
<% if RailsBase.config.templates.logged_in_header_modal %>
|
73
|
+
<div class='row'>
|
74
|
+
<div class='col'>
|
75
|
+
<%= render partial: RailsBase.config.templates.logged_in_header_modal, locals: { current_user: current_user } %>
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
</br>
|
79
|
+
<% end %>
|
72
80
|
<div class="dropdown-divider"></div>
|
73
81
|
<div class='row'>
|
74
82
|
<div class='col'>
|
data/lib/rails_base/config.rb
CHANGED
@@ -11,6 +11,7 @@ require 'rails_base/configuration/appearance'
|
|
11
11
|
require 'rails_base/configuration/user'
|
12
12
|
require 'rails_base/configuration/login_behavior'
|
13
13
|
require 'rails_base/configuration/active_job'
|
14
|
+
require 'rails_base/configuration/templates'
|
14
15
|
|
15
16
|
module RailsBase
|
16
17
|
class Config
|
@@ -28,7 +29,8 @@ module RailsBase
|
|
28
29
|
appearance: nil,
|
29
30
|
user: nil,
|
30
31
|
active_job: nil,
|
31
|
-
login_behavior: nil
|
32
|
+
login_behavior: nil,
|
33
|
+
templates: nil,
|
32
34
|
}
|
33
35
|
attr_reader *VARIABLES.keys
|
34
36
|
|
@@ -107,7 +107,12 @@ module RailsBase
|
|
107
107
|
default: 'mailers',
|
108
108
|
on_assignment: ->(val, _instance) { ACTION_MAILER_PROC.call(:deliver_later_queue_name, val) },
|
109
109
|
description: 'The active job queue to send twilio messages from. Ensure that adapter is bound to the queue',
|
110
|
-
}
|
110
|
+
},
|
111
|
+
verification_content: {
|
112
|
+
type: :string_proc,
|
113
|
+
default: ->(user) { "We are pleased to have you here" },
|
114
|
+
description: 'Description of app for verification mailer. User is passed in.',
|
115
|
+
},
|
111
116
|
}
|
112
117
|
|
113
118
|
attr_accessor *DEFAULT_VALUES.keys
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rails_base/configuration/base'
|
2
|
+
|
3
|
+
module RailsBase
|
4
|
+
module Configuration
|
5
|
+
class Templates < Base
|
6
|
+
|
7
|
+
DEFAULT_VALUES = {
|
8
|
+
logged_in_header_modal: {
|
9
|
+
type: :string_nil,
|
10
|
+
default: nil,
|
11
|
+
description: 'The template to render in the logged in header modal. `current_user` is passed in',
|
12
|
+
},
|
13
|
+
}
|
14
|
+
|
15
|
+
attr_accessor *DEFAULT_VALUES.keys
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/rails_base/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.57.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -590,6 +590,7 @@ files:
|
|
590
590
|
- lib/rails_base/configuration/mfa.rb
|
591
591
|
- lib/rails_base/configuration/owner.rb
|
592
592
|
- lib/rails_base/configuration/redis.rb
|
593
|
+
- lib/rails_base/configuration/templates.rb
|
593
594
|
- lib/rails_base/configuration/user.rb
|
594
595
|
- lib/rails_base/engine.rb
|
595
596
|
- lib/rails_base/version.rb
|