Permalink
Browse files

Fixed require.

Force UTF-8 when sending emails.
  • Loading branch information...
1 parent 093f9ba commit 1102aec761e442eba899a2604199c657d9949443 @assaf committed Sep 6, 2011
Showing with 5 additions and 3 deletions.
  1. +3 −1 .bundle/config
  2. +1 −1 count.rb
  3. +1 −1 subscription.rb
View
@@ -1,3 +1,5 @@
---
BUNDLE_WITHOUT: ""
-BUNDLE_PATH: .bundle
+BUNDLE_PATH: vendor/bundle
+BUNDLE_FROZEN: "1"
+BUNDLE_DISABLE_SHARED_GEMS: "1"
View
@@ -2,6 +2,6 @@
ENV["RACK_ENV"] = "production"
require "bundler"
Bundler.setup
-require "subscription"
+require "./subscription"
verified = Subscription.verified
puts verified.all.map(&:email), "--------", verified.count
View
@@ -163,7 +163,7 @@ def deliver(utc = Time.now.utc)
subject subject
html_part do
content_type "text/html"
- body html
+ body html.force_encoding(Encoding::UTF_8)
end
end
end

0 comments on commit 1102aec

Please sign in to comment.