From b96610a0a00a47e4c4efa32a208f074f2b38ed42 Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Thu, 25 Apr 2013 11:47:28 -0400 Subject: [PATCH] monkey patch fixnum to include encoding method --- lib/rails23_ruby193_fixnum_monkey_patch.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) create mode 100644 lib/rails23_ruby193_fixnum_monkey_patch.rb diff --git a/lib/rails23_ruby193_fixnum_monkey_patch.rb b/lib/rails23_ruby193_fixnum_monkey_patch.rb new file mode 100644 index 0000000..edea233 --- /dev/null +++ b/lib/rails23_ruby193_fixnum_monkey_patch.rb @@ -0,0 +1,7 @@ +class Fixnum + # actionpack-2.3.18/lib/action_controller/assertions/selector_assertions.rb:276 + # attempts to get encoding of Fixnum when doing has_tag "foo", :text => 3 + def encoding + Encoding::UTF_8 + end +end -- libgit2 0.21.2