Menu

Commit [r2522]  Maximize  Restore  History

Fixing Plugin and Mailer default_url_options.

Both the plugin hooks and Mailer were setting default_url_options incorrectly
and causing ActionContoller::UrlWritter to cache the settings on the module
(mattr_accessor) causing several url generators to fail in either the plugin
hooks or the Mailer.

* Replaced Mailer's use of the default_url_options accessor with the proper class method
* Replaced Hook's use of the default_url_options accessor with the proper class method on the ViewListener class
* Added a test to reproduce the bugs in the Mailer when a hook is registered (thanks Chaoqun Zou)

#2542

edavis10 2009-02-25

changed /trunk/app/models/mailer.rb
changed /trunk/lib/redmine/hook.rb
changed /trunk/test/unit/lib/redmine/hook_test.rb
/trunk/app/models/mailer.rb Diff Switch to side-by-side view
Loading...
/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.