> So my suggestion is that there be a facility added to
> ActionController::Base#performed?
> that allows a plugin to replace the default render if neither render nor
> redirect has
> been called (for example, if refresh has been called).
>
> It could be a very simple lightweight change in the core that would encompass
> both render
> and redirect and allow addition of further rendering models, such as this
> one...
>
> def default_render
> @default_render_chain.each{|renderer| return if renderer.call}\
> render
> end
>
> Then in perform_action:
> default_render unless performed?
>
> ... and of course some way to initialize @default_render
>
> Your thoughts, please?
This seems like a reasonable request, if you whip up a patch and get
it looked at, we should be fine. It would remain an internal
implementation thing, specifically intended to simplify changing
default rendering.
--
Cheers
Koz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---