Sha256: 0b695b479880acab5713aa650a6b815ee4ace8c11d38797b7fb6e562ddc5908d

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

module Manage::AssetsHelper
  
  def manage_assets_path_with_session_information(klass = 'Asset', options = {})
    options = { :format => :xml, :protocol => "http://" }.merge(options)
    session_key = Rails.application.config.send(:session_options)[:key]
    
    options[session_key] = Rack::Utils.escape(cookies[session_key])
    options[:klass] = klass
    
    if protect_against_forgery?
      options[request_forgery_protection_token] = Rack::Utils.escape(form_authenticity_token)
    end
    
    manage_assets_url(options)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
sunrise-core-0.1.1 lib/generators/sunrise/templates/helpers/manage/assets_helper.rb
sunrise-core-0.1.0 lib/generators/sunrise/templates/helpers/manage/assets_helper.rb
freeberry-0.3.0 lib/generators/freeberry/base/templates/helpers/manage/assets_helper.rb
freeberry-0.2.9 lib/generators/freeberry/base/templates/helpers/manage/assets_helper.rb
freeberry-0.2.7 lib/generators/freeberry/base/templates/helpers/manage/assets_helper.rb
freeberry-0.2.6 lib/generators/freeberry/base/templates/helpers/manage/assets_helper.rb