Commit cd35c03fed14f2464e75444ed4cceaa07c0243a9
- Date: Mon May 12 18:21:18 +0000 2008
- Committer: Simon Lundström (simon@soy.se)
- Author: Simon Lundström (simon@soy.se)
- Commit SHA1: cd35c03fed14f2464e75444ed4cceaa07c0243a9
- Tree SHA1: 797a193ce89c4114231370572fa5976c951b2b65
* Added debug message when we're failing.
Commit diff
| |   |
| 46 | 46 | elsif self.xhtmlmp?(user_agent) |
| 47 | 47 | "application/vnd.wap.xhtml+xml" |
| 48 | 48 | else |
| 49 | Merb.logger.debug("We tried to change the accept header, but the device wasn't an WML or XHTML MP browser.") |
| 49 | 50 | accept |
| 50 | 51 | end |
| 51 | 52 | end |
| toggle raw diff |
--- a/lib/merb_is_mobile.rb
+++ b/lib/merb_is_mobile.rb
@@ -46,6 +46,7 @@ module MerbIsMobile
elsif self.xhtmlmp?(user_agent)
"application/vnd.wap.xhtml+xml"
else
+ Merb.logger.debug("We tried to change the accept header, but the device wasn't an WML or XHTML MP browser.")
accept
end
end |