Skip to content

Commit

Permalink
feat: remove non used breadcrumb patch
Browse files Browse the repository at this point in the history
  • Loading branch information
owen2345 committed Feb 26, 2020
1 parent 1e8e89d commit 234afea
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions lib/plugin_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,28 +412,3 @@ def self.migration_class
end
end
CamaManager = PluginRoutes

#********* fix missing helper method for breadcrumb on rails gem **********#
if PluginRoutes.isRails5?
module BreadcrumbsOnRails
module ActionController extend ActiveSupport::Concern
def self.included(base = nil, &block)
if base.nil?
@_included_block = block
else
super
end
end

included do |base|
extend ClassMethods
helper HelperMethods if respond_to? :helper
helper_method :add_breadcrumb_on_rails, :add_breadcrumb, :breadcrumbs_on_rails, :breadcrumbs if respond_to? :helper_method

unless base.respond_to?(:before_action)
base.alias_method :before_action, :before_filter
end
end
end
end
end

0 comments on commit 234afea

Please sign in to comment.