aaalex-detect_mobiles 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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)
|