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.

Template Runner - add two new methods

#2237

This adds:

  • add_observer - (adds an ':something_observer' to environment.rb)

  • application_include - ('include Something' to application_controller.rb)

This makes it so you could get things like restful_authentication running from the template.

Reported by Dinshaw · March 15th, 2009 @ 02:49 AM

State: stale
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: none

Activity

  1. Dinshaw
    Dinshaw
    • Tag changed from patch to patch, template, template_runner

    Just pointing out that you might need this patch to get everything working: http://rails.lighthouseapp.com/p...

    March 15th, 2009 @ 03:02 AM

  2. Pratik
    Pratik
    • Assigned user set to Pratik

    March 15th, 2009 @ 10:03 AM

  3. Pratik
    Pratik
    • Assigned user changed from Pratik to José Valim

    August 9th, 2009 @ 10:31 PM

  4. José Valim
    José Valim
    • Milestone cleared.

    Pratik suggested adding a method that inserts into any class body. Something like inject_into_class.

    August 9th, 2009 @ 10:35 PM

  5. José Valim
    José Valim

    Just added inject_into_class. I'm wondering if add_observer should create the observer file as well or just change the config/environment.

    August 30th, 2009 @ 05:00 PM

  6. José Valim
    José Valim
    • State changed from new to incomplete

    Marking as incomplete until I have some feedback on add_observer or someone else have a similar request.

    October 17th, 2009 @ 03:51 PM

  7. José Valim
    José Valim
    • State changed from incomplete to stale

    January 3rd, 2010 @ 11:33 AM

  8. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM