Add html_safe handling for rails3
This commit is contained in:
parent
c7f52f2f8a
commit
33b044bc03
@ -1,6 +1,5 @@
|
||||
require "digest/md5"
|
||||
require "hmac-sha2"
|
||||
require "ruby-debug"
|
||||
module Facebooker2
|
||||
module Rails
|
||||
module Controller
|
||||
|
@ -2,6 +2,15 @@ module Facebooker2
|
||||
module Rails
|
||||
module Helpers
|
||||
module Javascript
|
||||
|
||||
def fb_html_safe(str)
|
||||
if str.respond_to?(:html_safe)
|
||||
str.html_safe
|
||||
else
|
||||
str
|
||||
end
|
||||
end
|
||||
|
||||
def fb_connect_async_js(app_id=Facebooker2.app_id,options={},&proc)
|
||||
opts = Hash.new(true).merge!(options)
|
||||
cookie = opts[:cookie]
|
||||
|
Loading…
Reference in New Issue
Block a user