mobile-fu 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mobile-fu.rb +3 -3
- data/lib/mobile-fu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a81168505f5f8394e5c595c3391c27809962fc62
|
4
|
+
data.tar.gz: 4272d8e4cdc87f6179c59675be21c31d3b2b479a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce7530078c06045c2d2b17f352e6259ab6acb7517b6d7643898e880c2c8e04c4bdebfc290eae701eac4ba129cc90fb5d966062450e0812ab3d6bc9db8a07ee5f
|
7
|
+
data.tar.gz: 5d1952efd5a5ef22e74441439f050db580339c071395f062a300e7abb5cfe6ee9280b90f8ed75efe7fec55f32fe2dec3b4a6fd7b175f83cdc1aed02e95a409b8
|
data/lib/mobile-fu.rb
CHANGED
@@ -82,7 +82,7 @@ module ActionController
|
|
82
82
|
def has_no_mobile_fu_for(*actions)
|
83
83
|
@mobile_exempt_actions = actions
|
84
84
|
end
|
85
|
-
|
85
|
+
|
86
86
|
# Add this to your controllers to only let those actions use the mobile format
|
87
87
|
# this method has priority over the #has_no_mobile_fu_for
|
88
88
|
# class AwesomeController < ApplicationController
|
@@ -181,7 +181,7 @@ module ActionController
|
|
181
181
|
if self.class.instance_variable_get("@mobile_include_actions").nil? #Now we know we dont have any includes, maybe excludes?
|
182
182
|
return !mobile_exempt?
|
183
183
|
else
|
184
|
-
self.class.instance_variable_get("@mobile_include_actions").try(:include?, params[:action].to_sym)
|
184
|
+
self.class.instance_variable_get("@mobile_include_actions").try(:include?, params[:action].try(:to_sym))
|
185
185
|
end
|
186
186
|
end
|
187
187
|
|
@@ -189,7 +189,7 @@ module ActionController
|
|
189
189
|
# See #has_no_mobile_fu_for
|
190
190
|
|
191
191
|
def mobile_exempt?
|
192
|
-
self.class.instance_variable_get("@mobile_exempt_actions").try(:include?, params[:action].to_sym)
|
192
|
+
self.class.instance_variable_get("@mobile_exempt_actions").try(:include?, params[:action].try(:to_sym))
|
193
193
|
end
|
194
194
|
end
|
195
195
|
end
|
data/lib/mobile-fu/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile-fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendan Lim
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|