Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Expose "run_foo_callbacks" callbacks api

#3329

I noticed you cheating in abstract controller. We are abusing our own api rules by calling a private "_" method in a different module.

    def process_action(method_name)
      _run_process_action_callbacks(method_name) do
        super
      end
    end

It should be using "run_callbacks :process_action". However, think we should just fully expose the nicer generated methods as the public api.

  • Rename "_run_foo_callbacks" to "run_foo_callbacks"
  • Document it as the main api
  • Put a deprecation notice in "run_callbacks"

Reported by josh · October 4th, 2009 @ 05:41 PM

State: resolved
Milestone: 3.0.2
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Repository
  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM