clivecrous/wurfl-lite-middleware — pull request #1 by andremedeiros (2012-06-18 15:19:07+00:00)
Title: Support passing options to the middleware

Hi.

I've added the possibility to pass options through to the middleware instead of polluting the config.ru file.

In this case, the usage would be:

config.middleware.use 'WURFL::Middleware', {:match_threshold => 0.2, :wurfl_xml => File.join(Rails.root, 'vendor', 'wurfl', 'wurfl.xml')}