email_preview 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ class EmailPreviewController < ApplicationController
7
7
  before_filter :build_email, :only => [:show, :deliver, :details, :preview]
8
8
 
9
9
  def deliver
10
+ session[:email_preview_to] = params[:to]
10
11
  @mail.to params[:to]
11
12
  @mail.respond_to?(:deliver_now) ? @mail.deliver_now : @mail.deliver
12
13
  redirect_to details_email_preview_path(params[:id])
@@ -42,8 +42,8 @@
42
42
  }
43
43
  </style>
44
44
  <%= form_tag deliver_email_preview_path(params[:id]), :class => 'deliver_form' do %>
45
- <%= text_field_tag :to, '', :placeholder => 'Send this email to me@yourcompany.com' %>
46
- <button type="submit">Send</button>
45
+ <%= text_field_tag :to, session[:email_preview_to], :placeholder => 'Send this email to me@yourcompany.com' %>
46
+ <button type="submit">Deliver Preview</button>
47
47
  <% end %>
48
48
  <h2>Headers</h2>
49
49
  <div class="headers">
@@ -1,3 +1,3 @@
1
1
  module EmailPreview
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-09 00:00:00.000000000 Z
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -152,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  segments:
154
154
  - 0
155
- hash: -3068805024756900553
155
+ hash: 3935645419797199101
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  none: false
158
158
  requirements:
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -3068805024756900553
164
+ hash: 3935645419797199101
165
165
  requirements: []
166
166
  rubyforge_project: email_preview
167
167
  rubygems_version: 1.8.24