Menu

Commit [r4064]  Maximize  Restore  History

Change link_to_if_authorized to allow url paths. (Fixes #6195)

Both url paths (/issues/1234) and params hashes (:controller => 'issues')
are now supported by link_to_if_authorized. The authorize_for method
requires a controller/action pair so urls need to be parsed against the
routes to find their controller/action.

edavis10 2010-09-06

changed /trunk/app/helpers/application_helper.rb
changed /trunk/test/unit/helpers/application_helper_test.rb
/trunk/app/helpers/application_helper.rb Diff Switch to side-by-side view
Loading...
/trunk/test/unit/helpers/application_helper_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.