trusty-rad-social-extension 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGI2ZGM4OWE1ODhhNmYwMjU2ZTEyZDMyMmU3MDYxNWMxYjU1NjA3Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2ZmM2UzZjI0YWI2MGNhMjg0MmRkNDg1NTk5MTVhZTc0NTEwMGE2ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2YyNTczNjFlZmVmY2VlMmVmYzEzOTIwNWE0NWUxOTYwNTkyZWI5MDJiZjQ2
|
10
|
+
ODIzNjk4NTg1OWRjODEzNjcwOWRhODIzNTZkNjJiY2UyNmU1OTY1ODI2MzUz
|
11
|
+
MTUyYjEwYTEwOTcwYjllMjg3OTQ3OWFjY2RmNDMwZWE1NjA3NmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjE5NjJkZjMyMGNmOGQ4ZGI5NWY5MzZmYjA0NThjNzc0Nzg3Y2NjOWUyZTgy
|
14
|
+
M2Q5ZDRjMTQxNjIxNGQyMzczYmY2NmE5MDE5NGQzMzJkZDZkOGUyZDlkMjM0
|
15
|
+
Y2MwNDk5YWU3Y2ViZjM4MWM1ODBlZjAzNjQ3Y2QwZjc0M2EzODU=
|
@@ -1,15 +1,15 @@
|
|
1
|
+
require 'mail'
|
1
2
|
class RadSocialMailer < ActionMailer::Base
|
2
3
|
|
3
4
|
def social_mail options
|
4
5
|
|
5
|
-
|
6
|
+
#binding.pry
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
subject options[:subject]
|
10
|
-
|
11
|
-
|
12
|
-
body :from_name => options[:from_name], :from_email => options[:from], :message => options[:message]
|
8
|
+
from_address = Mail::Address.new options[:from] # ex: "john@example.com"
|
9
|
+
from_address.display_name = options[:from_name] # ex: "John Doe"
|
10
|
+
mail(:to => options[:to], :from => from_address.format, :subject => options[:subject]) do |format|
|
11
|
+
format.html {render :text => options[:message]}
|
12
|
+
end
|
13
13
|
|
14
14
|
end
|
15
15
|
|
data/config/routes.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
2
|
TrustyCms::Application.routes.draw do
|
3
3
|
get '/rad_social/mail' => 'social_mailer#social_mail_form', as: :rad_social_mail_form
|
4
|
-
post '/rad_social/mail' => 'social_mailer#
|
4
|
+
post '/rad_social/mail' => 'social_mailer#create_social_mail', as: :rad_create_social_mail
|
5
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-rad-social-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sipple
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: recaptcha
|
@@ -128,3 +128,4 @@ test_files:
|
|
128
128
|
- spec/spec_helper.rb
|
129
129
|
- features/support/env.rb
|
130
130
|
- features/support/paths.rb
|
131
|
+
has_rdoc:
|