in order to give plugins consistent entry points

to patch core classes, we can use ActiveSupport's
lazy load hooks. this one will allow plugins to
register callbacks when the application controller
is loaded. see the meta project plugin for a use
case.
pull/1186/head
Martin Linkhorst 12 years ago committed by Martin Linkhorst
parent 9afb247beb
commit c5280b970f
  1. 2
      app/controllers/application_controller.rb

@ -598,4 +598,6 @@ class ApplicationController < ActionController::Base
name
end
helper_method :default_breadcrumb
ActiveSupport.run_load_hooks(:application_controller, self)
end

Loading…
Cancel
Save