Menu

Commit [r2429]  Maximize  Restore  History

Added request and controller objects to the hooks by default.

The request and controller objects are now added to all hook contexts by
default. This will also make url_for work better in hooks by setting up
the default_url_options :host, :port, and :protocol.

Finally a new helper method @render_or@ has been added to ViewListener. This
will let a hook easily render a partial without a full method definition.

Thanks to Thomas Löber for the original patch. #2542

edavis10 2009-02-10

changed /trunk/lib/redmine/hook.rb
changed /trunk/test/unit/lib/redmine/hook_test.rb
/trunk/lib/redmine/hook.rb Diff Switch to side-by-side view
Loading...
/trunk/test/unit/lib/redmine/hook_test.rb Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.