./lib/lux/application/lib/render.rb in lux-fw-0.2.3 vs ./lib/lux/application/lib/render.rb in lux-fw-0.5.32
- old
+ new
@@ -16,10 +16,11 @@
Lux::Application.class_eval do
def self.render path='/mock', in_opts={}, &block
allowed_opts = [:qs, :post, :method, :session, :cookies]
in_opts.keys.each { |k| die "#{k} is not allowed as opts param. allowed are #{allowed_opts}" unless allowed_opts.index(k) }
+ # in_opts[:session] = nil unless Hash == in_opts[:session].class
opts = {}
if in_opts[:post]
opts[:query_string] = in_opts[:post]
@@ -59,10 +60,10 @@
{
time: response[1]['x-lux-speed'],
status: response[0],
headers: response[1],
- session: current.session,
+ session: current.session.hash,
body: body
}.h
end
end
\ No newline at end of file