Открыть боковую панель
nt_test133
nt_project_uxpg8lvcuq8w
Коммиты
a7087cb9
Коммит
a7087cb9
создал
Дек 07, 2015
по автору
Valery Sizov
Просмотр файлов
HTTP_REFERER not properly set in Safari
владелец
6b028ed8
Изменения
3
Скрыть пробелы
Построчно
Рядом
app/controllers/groups/hooks_controller.rb
Просмотр файла @
a7087cb9
...
...
@@ -38,7 +38,7 @@ def test
flash
[
:alert
]
=
'Hook execution failed. Ensure the group has a project with commits.'
end
redirect_
to
:
back
redirect_back
_or_default
(
default:
{
action:
'index'
})
end
def
destroy
...
...
app/controllers/groups/ldap_group_links_controller.rb
Просмотр файла @
a7087cb9
...
...
@@ -14,16 +14,19 @@ def create
if
request
.
referer
&&
request
.
referer
.
include?
(
'admin'
)
redirect_to
[
:admin
,
@group
],
notice:
'New LDAP link saved'
else
redirect_
to
:back
,
notice:
'New LDAP link saved'
redirect_
back_or_default
(
default:
{
action:
'index'
},
options:
{
notice:
'New LDAP link saved'
})
end
else
redirect_to
:back
,
alert:
"Could not create new LDAP link:
#{
ldap_group_link
.
errors
.
full_messages
*
', '
}
"
redirect_back_or_default
(
default:
{
action:
'index'
},
options:
{
alert:
"Could not create new LDAP link:
#{
ldap_group_link
.
errors
.
full_messages
*
', '
}
"
}
)
end
end
def
destroy
@group
.
ldap_group_links
.
where
(
id:
params
[
:id
]).
destroy_all
redirect_
to
:back
,
notice:
'LDAP link removed'
redirect_
back_or_default
(
default:
{
action:
'index'
},
options:
{
notice:
'LDAP link removed'
})
end
private
...
...
app/controllers/projects/approvers_controller.rb
Просмотр файла @
a7087cb9
...
...
@@ -9,6 +9,6 @@ def destroy
project
.
approvers
.
find
(
params
[
:id
]).
destroy
end
redirect_
to
:
back
redirect_back
_or_default
(
default:
{
action:
'index'
})
end
end
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать