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

Version Path
redditor-0.1.10 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.9 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.8 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.7 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.6 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.5 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.4 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.3 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.2 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.1 app/helpers/redditor/fileapi_helper.rb
redditor-0.1.0 app/helpers/redditor/fileapi_helper.rb