brendanlim / mobile-fu

Automatically detect mobile requests from mobile devices in your Rails application.
http://www.intridea.com/2008/7/21/mobilize-your-rails-application-with-mobile-fu
MIT License
709 stars 195 forks source link

added support for ignored_formats #26

Open refaelos opened 12 years ago

refaelos commented 12 years ago

This fork adds the ability to ignore curtain request formats from being mobilized. You might want to return JSON for :json or :iphone mime types and not let mobile_fu convert your format to :mobile.

Usage example at the end of README.rdoc file.

woahdae commented 12 years ago

+1 in general, although a quick look at the patch shows that it's an api-breaking change. I do like the way you have it, but IMO you should handle the case of passing true as the option hash for backwards compatibility. That is if anyone notices the patch :)

refaelos commented 12 years ago

I changed the code to support backward compatibility.

benlangfeld commented 10 years ago

This project is abandoned. Please see the active fork at http://github.com/benlangfeld/mobile-fu. Please test with the released gem and master branch of the new home for the project, and file an issue on the other repo if you still have problems.

See #40.