spilliton / fix_microsoft_links

Fixes redirects to login pages when a user clicks a link to your site from a Microsoft application like Word or Excell
MIT License
21 stars 7 forks source link

Fix rails4 compatibility #2

Closed lilitSocial closed 11 years ago

lilitSocial commented 11 years ago

This gem does not work in Rails4 since the Rack::Lock middleware has been removed in rails4.

My suggested fix is to use app.config.middleware.use instead of app.config.middleware.insert_after ::Rack::Lock.

spilliton commented 11 years ago

Thanks for checking into this :) Hoping to try this out soon. Does this still work with Rails 3?

lilitSocial commented 11 years ago

Yep, works in both rails 3 and 4

spilliton commented 11 years ago

Sweet, just got around to trying it on our Rails 3 project and it works :)