Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
end
end

$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"

require_dependency 'redmine_git_server/hooks'

app = Rails.application
Expand Down
14 changes: 7 additions & 7 deletions lib/redmine_git_server/patches/repositories_controller_patch.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
require_dependency 'repositories_controller'

module RepositoriesControllerWithGitServerSupport

def show_error_not_found
return super if params[:action] != 'show'
render action: 'empty'
module RedmineGitServer::Patches
module RepositoriesControllerPatch
def show_error_not_found
return super if params[:action] != 'show'
render action: 'empty'
end
end

end

RepositoriesController.send(:prepend, RepositoriesControllerWithGitServerSupport)
RepositoriesController.send(:prepend, RedmineGitServer::Patches::RepositoriesControllerPatch)