Skip to content

Commit

Permalink
Update action_controller_extension.rb
Browse files Browse the repository at this point in the history
Wrapper helper_method call to avoid storytime issue CultivateLabs/storytime#206
  • Loading branch information
fbukevin authored May 9, 2017
1 parent 184652b commit 37eac1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/leather/action_controller_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ module ActionControllerExtension

included do
extend ClassMethods
helper_method :current_tab, :current_tab? if respond_to?(:helper_method)
if respond_to?(:helper_method)
helper_method :current_tab, :current_tab? if respond_to?(:helper_method)
end
end

protected
Expand Down

0 comments on commit 37eac1d

Please sign in to comment.