Skip to content

Commit

Permalink
Merge pull request benlangfeld#18 from umairsiddique/master
Browse files Browse the repository at this point in the history
Fixes is_mobile_device? method to ensure that a tablet device is not detected as a mobile device
  • Loading branch information
benlangfeld committed May 22, 2012
2 parents 05dc3c2 + e98e4ec commit 86157bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mobile-fu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def in_tablet_view?
# the device making the request is matched to a device in our regex.

def is_mobile_device?
!!mobile_device
!is_tablet_device? && !!mobile_device
end

def is_tablet_device?
Expand Down

0 comments on commit 86157bd

Please sign in to comment.