Skip to content
Browse files

Nil platform handler for StaticControllers

  • Loading branch information...
1 parent 2cebc66 commit 114bc6280167b60c6010ddc4a35c5ee00997a27f @ArturG ArturG committed Feb 27, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −1 app/controllers/static_controller.rb
  2. +0 −1 features/support/env.rb
View
2 app/controllers/static_controller.rb
@@ -34,6 +34,6 @@ def newest_version
protected
def platform
- request.user_agent.downcase
+ request.user_agent.nil? ? nil : request.user_agent.downcase
end
end
View
1 features/support/env.rb
@@ -40,7 +40,6 @@
Before do
DatabaseCleaner[:mongo_mapper].clean
- page.driver.header('User-Agent', "Mac")
end
# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.

0 comments on commit 114bc62

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