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.
Files changed (2) hide show
  1. data/lib/detect_mobiles.rb +4 -6
  2. metadata +1 -1
@@ -1,6 +1,5 @@
1
- # DetectMobiles
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.class_eval do
34
- include DetectMobiles
35
- end
33
+ ActionController::Base.send(:include, Aaalex::DetectMobiles)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aaalex-detect_mobiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Peuchert