Rails 2.3, I could make the gem set up the middleware without adding
anything to config/*.rb in the app. I did this with the following
But in Rails 3, this doesn't work.
I've tried putting the following into the gem's lib/gem_name.rb:
But now when I run `rake middleware` I get "undefined method `config'
for nil:NilClass" which means that Rails.application is nil.
I successfully used the middleware by with an initializer or something
in the app's config directory, but I'd like to do this in the gem. Is
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.