Skip to content

Commit

Permalink
Merge pull request #67 from etal2/master
Browse files Browse the repository at this point in the history
fix rails 3 support that was broken in 1.4.0
  • Loading branch information
denstepa committed Dec 8, 2017
2 parents 6882a3c + 0238116 commit ab1d8ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/mobile-fu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ module ClassMethods
def has_mobile_fu(set_request_format = true)
include ActionController::MobileFu::InstanceMethods

before_action :set_request_format if set_request_format
if Rails::VERSION::MAJOR < 4
before_filter :set_request_format if set_request_format
else
before_action :set_request_format if set_request_format
end

helper_method :is_mobile_device?
helper_method :is_tablet_device?
Expand Down

0 comments on commit ab1d8ab

Please sign in to comment.