Sha256: 235448f85030ab0142fa1723884cd4bae47079f743c6348717667f326c410c4b
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
module Manage::AssetsHelper def manage_assets_path_with_session_information(klass='Asset', options = {}) options.symbolize_keys! session_key = Rails.application.config.send(:session_options)[:key] options[session_key] = Rack::Utils.escape(cookies[session_key]) options[:format] = :xml options[:protocol] = "http://" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freeberry-0.2.5 | lib/generators/freeberry/base/templates/helpers/manage/assets_helper.rb |