egov_utils 1.2.2 → 1.2.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41e5e8f0fddbd48afc8de52397c54112e05b6bdab136dcc6b47cdf6591192af9
|
4
|
+
data.tar.gz: 153fe8400cbc5054d67ede4ad80baab8c4c5c2b36d9d9195e851e077219f98e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d05de0762d92b03dd8c1437ea176030976cf3f9e78ae732b91859cc934b9a0b7de3f9a78e08f622870c2568966c02fca953c54d364ba95785c452f241f710b5
|
7
|
+
data.tar.gz: fffee71ae833b7930c9ec2706bdebc9aaa01c8670063409055f8703e3e6e0389b8228e3122ac87e15e69dbc7134d4f000381b822e7b16c8112546484083f42bc
|
@@ -1,11 +1,12 @@
|
|
1
1
|
module EgovUtils
|
2
2
|
class RegistrationRequestMailer < ApplicationMailer
|
3
3
|
before_action { @host = params && params[:host] || Rails.application.config.action_mailer.default_url_options[:host] }
|
4
|
+
DEFAULT_MAIL = 'vts@msp.justice.cz'
|
4
5
|
|
5
6
|
def created(request_id)
|
6
7
|
@request = EgovUtils::RegistrationRequest.find(request_id)
|
7
8
|
|
8
|
-
mail(to: @request.mail, subject: I18n.t('mailers.registration_requests.created.subject'))
|
9
|
+
mail(to: @request.mail, cc: DEFAULT_MAIL, subject: I18n.t('mailers.registration_requests.created.subject'))
|
9
10
|
end
|
10
11
|
|
11
12
|
def accepted(request_id, user_id, password)
|
@@ -6,6 +6,9 @@ module EgovUtils
|
|
6
6
|
string :lastname
|
7
7
|
string :organization
|
8
8
|
string :note
|
9
|
+
string :supervisor_name
|
10
|
+
string :supervisor_phone
|
11
|
+
string :supervisor_email
|
9
12
|
|
10
13
|
def execute
|
11
14
|
request = RegistrationRequest.create(inputs.merge(status: :pending))
|
@@ -22,4 +25,3 @@ module EgovUtils
|
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
25
|
-
|
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|