This project is archived and is in readonly mode.
Refactoring ActionView::Partials
-
josh
- State changed from new to wontfix
- Assigned user set to josh
- Milestone cleared.
I don't like
- I'm against adding more private methods to the view context. It would be better to push that logic into RenderablePartial and break it up if possible.
- The Renderable#compile! method should have no logic concerning partials. I'd override compile! in RenderablePartial to add extra behavior.
- Why do you need to change the assertion in test_render_partial_collection_without_as?
I do like
- Moving useful logic (from ActionController) into ActionView.
- The idea of cleaning up Partial logic in general ;)
-
josh
Took some of your ideas and cleaned up a few others things. Gave you the cred though.
1129a24
-
Ryan Bates
Cool, thanks for doing that.