flyover-contact 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/contact/message_mailer.rb +1 -3
- data/lib/contact/version.rb +1 -1
- data/lib/flyover-contact.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a170fe1bff5fa45a4d76e647476fdc2f420db52
|
4
|
+
data.tar.gz: a92ef9e1ff23ecbe01d7e49b1500ad5e4f1a65d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c159fd6a9294c39d50e9576952edb2dc124e9648e943240fafe3e63fb041d8f349e229717bd1270b77b8a7ba68fdcb5e99fdc782b04ca8256e4c19ecadba8869
|
7
|
+
data.tar.gz: 78fedd9a8d0bc150d1fdbd1d2c2b5d04b72296bac8bf09b1f3032e278e249be6716b06e8f3b7f77d866e142eabb340d7aecda43765a02b9291d6082b10d05131
|
@@ -1,10 +1,8 @@
|
|
1
1
|
module Contact
|
2
2
|
class MessageMailer < ActionMailer::Base
|
3
|
-
default from: Contact.from_email
|
4
|
-
|
5
3
|
def new_message(message)
|
6
4
|
@message = message
|
7
|
-
mail to: Contact.to_email, subject: Contact.subject
|
5
|
+
mail to: Contact.to_email, from: @message.email, subject: Contact.subject
|
8
6
|
end
|
9
7
|
end
|
10
8
|
end
|
data/lib/contact/version.rb
CHANGED
data/lib/flyover-contact.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
require "contact/engine"
|
2
2
|
|
3
3
|
module Contact
|
4
|
-
mattr_accessor :to_email, :
|
4
|
+
mattr_accessor :to_email, :subject, :success_message, :base_controller
|
5
5
|
@@to_email = "to@example.com"
|
6
|
-
@@from_email = "from@example.com"
|
7
6
|
@@subject = "New Contact Form Submission"
|
8
7
|
@@success_message = "Success! Your message has been sent and we'll get back to you as soon as possible."
|
9
8
|
@@base_controller = "::ApplicationController"
|