blob: 83672bbb4cdad7a1dd2a0414e7462e37afe390df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# ===GLSAMaker v2
# Copyright (C) 2009-2011 Alex Legler <a3li@gentoo.org>
# Copyright (C) 2009 Pierre-Yves Rofes <py@gentoo.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# For more information, see the LICENSE file.
class BugController < ApplicationController
def bug
begin
@bug = Glsamaker::Bugs::Bug.load_from_id(params[:id].to_i)
rescue SocketError => e
log_error e
@bug = "down"
rescue ArgumentError => e
log_error e
@bug = nil
end
render :layout => false
end
def history
begin
@bug = Glsamaker::Bugs::Bug.load_from_id(params[:id].to_i)
rescue SocketError => e
@bug = "down"
rescue ArgumentError => e
@bug = nil
end
render :layout => false
end
end
|