contact 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/mailers/mailer.rb +14 -9
- data/contact-0.0.8.gem +0 -0
- data/lib/contact/version.rb +1 -1
- metadata +4 -3
data/app/mailers/mailer.rb
CHANGED
@@ -1,11 +1,16 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
module Contact
|
2
|
+
require 'contact/engine' if defined?(Rails)
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
class Mailer < ActionMailer::Base
|
5
|
+
default :to => CONTACT['default_recipients']
|
6
|
+
|
7
|
+
# We have a contact form. That form is filled out by the customer. When they click 'send', this email is sent.
|
8
|
+
# It is how our customers contact_us()
|
9
|
+
def contact_us(form)
|
10
|
+
@form = form
|
11
|
+
mail :from => form.from,
|
12
|
+
:subject => "Customer Contact: #{form.subject}"
|
13
|
+
end
|
10
14
|
end
|
11
|
-
|
15
|
+
|
16
|
+
end
|
data/contact-0.0.8.gem
ADDED
Binary file
|
data/lib/contact/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Younker
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- contact-0.0.5.gem
|
93
93
|
- contact-0.0.6.gem
|
94
94
|
- contact-0.0.7.gem
|
95
|
+
- contact-0.0.8.gem
|
95
96
|
- contact.gemspec
|
96
97
|
- db/seeds.rb
|
97
98
|
- doc/README_FOR_APP
|