Skip to content

Commit

Permalink
Merge pull request #6 from jimmybaker/master
Browse files Browse the repository at this point in the history
Added Rails 5 compatability mod
  • Loading branch information
ma2gedev committed Jul 6, 2016
2 parents f90a8f0 + 323d3ee commit 12920ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/breadcrumble/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ module ActionController
extend ActiveSupport::Concern

included do
helper_method :add_breadcrumb, :breadcrumbs, :breadcrumb_trails
if respond_to?(:helper_method)
helper_method :add_breadcrumb, :breadcrumbs, :breadcrumb_trails
end
end

module ClassMethods
Expand Down

0 comments on commit 12920ae

Please sign in to comment.