forked from GetJobber/prawnto
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some fix to work better with ruby 1.8.7
- Loading branch information
1 parent
e59ea75
commit 53abd03
Showing
4 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
class PdfEmailer < ActionMailer::Base | ||
helper :application | ||
default from: "from@example.com" | ||
default :from => "from@example.com" | ||
|
||
def email_with_attachment | ||
@x = 1 | ||
|
||
attachments["hello_world.pdf"] = render("test/default_render", :format => :pdf) | ||
mail :subject => "Hello", :to => "test@test.com" do |format| | ||
format.text | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53abd03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup. Mind if I pull it?
53abd03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, but it doesn't solve all 1.8.7 issues :s
Tests do not all pass on 1.8.7.