On Mon, Jan 2, 2012 at 12:39, Daniel Bryan <danbr...@gmail.com> wrote:
> Ah, thanks.
>
> I thought that the order of calling 'use' would explicitly describe the
> order. This was my main problem - since Camping's doing a bit of a hack to
> neatly slot the middleware in without people needing a rackup file or
> whatever, it's a bit unclear on how to get stuff in the right order.

Yeah, it's in reverse order:

  module App
    use Foo
    use Bar
  end

is the same as:

  Bar.new(Foo.new(App))

> I ended up just using Rack::Session::Cookie in my rackup file, and removing
> 'include Camping::Session' from my Camping app.
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to