mobile-fu 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2baf64bbd0b25b8b035e267fbf395ab0febf61aa
4
- data.tar.gz: 6d69f8abef1d41d6c0137200b44b96908ee55659
3
+ metadata.gz: a81168505f5f8394e5c595c3391c27809962fc62
4
+ data.tar.gz: 4272d8e4cdc87f6179c59675be21c31d3b2b479a
5
5
  SHA512:
6
- metadata.gz: 1f4e53cbf1c3e422d31aa204519156206bae8105cf7e4f5e5ffb9ce4c6912176a99aa3dc00f99c6cc7237ec53b4c019b600edb45d57a393a072ff11e52c75e3f
7
- data.tar.gz: 7e8907ac7d37ffbc368bf40b959a2c48e8607c94572059be14bf5a95587e7bcf8a258a85c942d7290fd84b829c0602c65dff5afe66329a7498569c7648a49290
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
@@ -1,3 +1,3 @@
1
1
  module MobileFu
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
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.1
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-06-05 00:00:00.000000000 Z
12
+ date: 2013-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails