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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Adding #environment to new template_runner

#1613

Hey All

The attached patch extracts some functionality from the TemplateRunner#gem method to allow arbitrary code/text to be added to the Rails::Initializer block using #environment. This makes it easy to add load_paths, set the load order, etc. using the new bin/rails templates.

Thanks!

--AQ

Reported by Aaron Quint · December 22nd, 2008 @ 05:57 AM

State: duplicate
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Aaron Quint
  2. Pratik
    Pratik
    • Assigned user set to Pratik

    December 22nd, 2008 @ 11:11 AM

  3. Aaron Quint
    Aaron Quint

    Hey Pratik

    I also noticed there are no tests for the template_runner in general - I'm happy to contribute these if there's a desire/interest

    December 22nd, 2008 @ 05:20 PM

  4. Pratik
    Pratik

    Hey Aaron,

    That'd be great! You can open a new ticket for that and assign to me.

    Thanks for working on this.

    December 22nd, 2008 @ 05:24 PM

  5. Aaron Quint
    Aaron Quint

    Hey Pratik

    I am a man of my word - I wrote a full test suite that encompasses this tickets patch and created a ticket for it: #1618 Test Coverage and refactor of Template Runner

    So you can close this ticket in favor of that one.

    December 23rd, 2008 @ 02:44 AM

  6. Pratik
    Pratik
    • State changed from new to duplicate

    Thanks !

    December 23rd, 2008 @ 02:54 AM