Sha256: e6be6dc4c04bed79cd3603c2e1dbfa054b44ad1efdadf5e7c08d44b8a90d07f2
Contents?: true
Size: 383 Bytes
Versions: 11
Compression:
Stored size: 383 Bytes
Contents
#coding: utf-8 module Redditor module FileapiHelper def fileapi url=nil html = stylesheet_link_tag "redditor/fileapi/fileapi" html += javascript_include_tag "redditor/fileapi/mailru" if url.present? html += javascript_tag do %Q{FU.config.uploadUrl = "#{url}"}.html_safe end end content_for(:js, html) end end end
Version data entries
11 entries across 11 versions & 1 rubygems