This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_entrouvert/lib/welcome_controller_patch.rb

14 lines
383 B
Ruby

module WelcomeControllerPatch
def self.included(base)
base.class_eval do
def index
@news = News.latest User.current
@projects = Project.all_public.active.order("LOWER(name)").find_all { |project| not project.repository.nil? }
end
end
end
end
# Add module to Welcome Controller
WelcomeController.send(:include, WelcomeControllerPatch)