Project

General

Profile

Actions

Patch #20507

closed

ThemesHelper reopening ApplicationHelper is problem with autoloading

Patch #20507: ThemesHelper reopening ApplicationHelper is problem with autoloading

Added by Ondřej Ezr over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:

Description

redmine/themes.rb defines ApplicationHelper, but it gets into problems, if there is a patch for it in plugin, which redefines ApplicationHelper method. Rails do not load it - it is loaded, but does not have the method defined. It works only if patch is after a controller invocation, because it load it by path and do not care if it is defined. But it bassically defines the model and avoiding Rails autoloading.


Files

themes_helper.patch (495 Bytes) themes_helper.patch Ondřej Ezr, 2015-08-11 01:58

Updated by Jean-Philippe Lang over 11 years ago Actions #1

  • Category set to Code cleanup/refactoring
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 3.2.0

Patch committed in r14511, thanks.

Updated by Jean-Philippe Lang over 11 years ago Actions #2

  • Status changed from Closed to Reopened

Updated by Jean-Philippe Lang about 11 years ago Actions #3

  • Status changed from Reopened to Closed
Actions

Also available in: PDF Atom