Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

mobile_exempt? bug

line 165 added ceck to params[:action].nil?
  • Loading branch information...
commit f5446c2f1854139c030833facae9112d27086880 1 parent d442479
Kadoudal authored September 11, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/mobile-fu.rb
2  lib/mobile-fu.rb
@@ -162,7 +162,7 @@ def is_device?(type)
162 162
       # See #has_no_mobile_fu_for
163 163
 
164 164
       def mobile_exempt?
165  
-        self.class.instance_variable_get("@mobile_exempt_actions").try(:include?, params[:action].to_sym)
  165
+        self.class.instance_variable_get("@mobile_exempt_actions").try(:include?, params[:action].to_sym) unless  params[:action].nil?
166 166
       end
167 167
     end
168 168
   end

0 notes on commit f5446c2

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