Skip to content

Commit

Permalink
Conditional use of helper_method in ActionController. (fnando#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierav authored and fnando committed Jun 29, 2017
1 parent ab519f5 commit 92ee99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ActionController
extend ActiveSupport::Concern

included do
helper_method :browser
helper_method(:browser) if respond_to?(:helper_method)
end

private
Expand Down

0 comments on commit 92ee99e

Please sign in to comment.