From 5ea3d5459b0edf8f40c011bcd4f48569595bf5f0 Mon Sep 17 00:00:00 2001 From: Reiner Dieterich Date: Fri, 20 Aug 2010 18:52:34 +0200 Subject: [PATCH] fixed version check --- lib/facebooker2/rails/helpers/javascript.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facebooker2/rails/helpers/javascript.rb b/lib/facebooker2/rails/helpers/javascript.rb index 1847286..83d530c 100644 --- a/lib/facebooker2/rails/helpers/javascript.rb +++ b/lib/facebooker2/rails/helpers/javascript.rb @@ -32,7 +32,7 @@ module Facebooker2 }()); JAVASCRIPT - if ::Rails::VERSION::STRING > "2" + if ::Rails::VERSION::STRING.to_i > 2 js.html_safe else block_given? ? concat(js) : js