diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0ccafebf5..24fb6ee81 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -28,6 +28,8 @@ module ApplicationHelper include AvatarHelper ## added by william include PraiseTreadHelper + # add by nyan + include CoursesHelper extend Forwardable def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index ba1549edd..ff16d5d60 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -19,9 +19,6 @@ include AvatarHelper module ProjectsHelper - # add by nyan - include CoursesHelper - def link_to_version(version, options = {}) return '' unless version && version.is_a?(Version) link_to_if version.visible?, format_version_name(version), { :controller => 'versions', :action => 'show', :id => version }, options