lib/ refactoring. Module Gitlabhq renamed to Gitlab
This commit is contained in:
parent
8ceb94081a
commit
3272620f72
20 changed files with 87 additions and 85 deletions
|
@ -5,7 +5,7 @@ class ApplicationController < ActionController::Base
|
|||
protect_from_forgery
|
||||
helper_method :abilities, :can?
|
||||
|
||||
rescue_from Gitlabhq::Gitolite::AccessDenied do |exception|
|
||||
rescue_from Gitlab::Gitolite::AccessDenied do |exception|
|
||||
render "errors/gitolite", :layout => "error"
|
||||
end
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class ProjectsController < ApplicationController
|
|||
format.js
|
||||
end
|
||||
end
|
||||
rescue Gitlabhq::Gitolite::AccessDenied
|
||||
rescue Gitlab::Gitolite::AccessDenied
|
||||
render :js => "location.href = '#{errors_githost_path}'" and return
|
||||
rescue StandardError => ex
|
||||
@project.errors.add(:base, "Cant save project. Please try again later")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue