flyover-contact 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/contact/application_controller.rb +1 -1
- data/lib/contact/version.rb +1 -1
- data/lib/flyover-contact.rb +6 -1
- 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: df47734e7a0ffac32fc55c2ec574ab0caa80c37f
|
4
|
+
data.tar.gz: 7511f26230771f4fe80edca562d8f0a1d862818a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abc5ac5d779d06afafbbc26374f1345cf5c78a558d053249e8a1d91882e5152d81bd7895580c14e6771f69822b88c6165e8a667dfe53732e6140b168a7e3963d
|
7
|
+
data.tar.gz: 9133ba90137ed7c606b9a6f1a363673981c628617fb180b6a65b4baca98b79f279cfe5281babe9b8ea0548fb0e2530af876a0a38765948e649612d57061808d1
|
data/lib/contact/version.rb
CHANGED
data/lib/flyover-contact.rb
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
require "contact/engine"
|
2
2
|
|
3
3
|
module Contact
|
4
|
-
mattr_accessor :to_email, :from_email, :subject, :success_message
|
4
|
+
mattr_accessor :to_email, :from_email, :subject, :success_message, :base_controller
|
5
5
|
@@to_email = "to@example.com"
|
6
6
|
@@from_email = "from@example.com"
|
7
7
|
@@subject = "New Contact Form Submission"
|
8
8
|
@@success_message = "Success! Your message has been sent and we'll get back to you as soon as possible."
|
9
|
+
@@base_controller = "::ApplicationController"
|
9
10
|
|
10
11
|
def self.configure(&block)
|
11
12
|
yield self
|
12
13
|
end
|
14
|
+
|
15
|
+
def self.base_controller
|
16
|
+
@@base_controller.constantize
|
17
|
+
end
|
13
18
|
end
|