Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Then add the line below to config/initializers/mime_types.rb
For Skiping setting the Format to :mobile
Add this line to your Application Controller

skip_before_filter :set_mobile_format
skip_before_action :set_mobile_format

Example
=======
Expand Down
4 changes: 2 additions & 2 deletions lib/active_device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
module ActiveDevice

include ActiveDevice::Helper

def self.included(base)
base.before_filter :set_mobile_format
base.before_action :set_mobile_format
base.helper_method :is_mobile_device?, :is_mobile_browser?, :is_desktop_browser?, :is_bot?
base.helper_method :is_mobile_view?
base.helper_method :is_device?, :is_handset?, :is_brand?, :is_model?, :is_os?, :is_engine?, :is_browser?
Expand Down