Sha256: 7490083585be5bd9c4e18b62f7fa9e7a509acdb06ab5bfa9c4148a9e4832e28a

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

module Galakei::SessionIdParameter::InForm
  def extra_tags_for_form(html_options)
    s = super
    if !request.cookies? && html_options["method"] == "get"
      key = ::Rails.application.config.session_options[:key]
      s << tag(:input, :type => "hidden", :name => key, :value => request.session_options[:id])
    end
    s
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
galakei-0.4.0 lib/galakei/session_id_parameter/in_form.rb
galakei-0.3.8 lib/galakei/session_id_parameter/in_form.rb
galakei-0.3.7 lib/galakei/session_id_parameter/in_form.rb
galakei-0.3.6 lib/galakei/session_id_parameter/in_form.rb
galakei-0.3.5 lib/galakei/session_id_parameter/in_form.rb
galakei-0.3.4 lib/galakei/session_id_parameter/in_form.rb
galakei-0.3.3 lib/galakei/session_id_parameter/in_form.rb