aaalex-detect_mobiles 0.0.2 → 0.0.3
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.
- data/lib/detect_mobiles.rb +4 -6
- metadata +1 -1
data/lib/detect_mobiles.rb
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
module DetectMobiles
|
|
1
|
+
module Aaalex
|
|
2
|
+
module DetectMobiles
|
|
4
3
|
def detect_mobiles
|
|
5
4
|
case
|
|
6
5
|
when is_request_from_iphone?
|
|
@@ -28,8 +27,7 @@ module DetectMobiles
|
|
|
28
27
|
end
|
|
29
28
|
return false
|
|
30
29
|
end
|
|
30
|
+
end
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
ActionController::Base.
|
|
34
|
-
include DetectMobiles
|
|
35
|
-
end
|
|
33
|
+
ActionController::Base.send(:include, Aaalex::DetectMobiles)
|