Permalink
Browse files

remove needless force_encoding.

  • Loading branch information...
1 parent 025ebaf commit 27dc841070dbf32f312da559a7815afd4db81332 @okkez okkez committed Dec 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 app.rb
View
6 app.rb
@@ -35,11 +35,11 @@ def jigoku?
end
def title
- erb(:title).force_encoding("ascii-8bit").strip
+ erb(:title).strip
end
def description
- erb(:description).force_encoding("ascii-8bit")
+ erb(:description)
end
get '/' do
@@ -464,7 +464,7 @@ def prepare_font_name(name)
@user = user
@families = @@font_families.sort_by {rand}[0, 50].collect do |name|
if name.respond_to?(:force_encoding)
- name.dup.force_encoding("ASCII-8BIT")
+ name.dup
else
name
end

0 comments on commit 27dc841

Please sign in to comment.