Skip to content
Browse files

instructions for passing block to supported call

  • Loading branch information...
1 parent 8a93d30 commit 23e4be8f3d291ab3e7cfef24c7730ced60399724 @assembler committed Apr 20, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0
@@ -46,6 +46,15 @@ If you wish to completely prevent some browsers from accessing website
config.supported "Internet Explorer", false
+There is also an option to provide block for more advanced checking.
+[UserAgent object]( will be
+passed to it. If you wish to state that *mobile safari* is not supported, you
+can declare it like this:
+ config.supported do |agent|
+ !(agent.browser == "Safari" &&
+ end
Specifying location is optional. If you prefer handling unsupported browsers on
your own, you can access browsernizer info from `request.env['browsernizer']`
within your controller.

0 comments on commit 23e4be8

Please sign in to comment.
Something went wrong with that request. Please try again.