Module: Spider::FirstResponder

Defined in:
lib/spiderfw/controller/first_responder.rb

Instance Method Summary collapse

Instance Method Details

#after(action = '', *arguments) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/spiderfw/controller/first_responder.rb', line 30

def after(action='', *arguments)
    catch :done do
        begin
            super
        rescue => exc
            self.done = true
            try_rescue(exc)
        end
    end
    # Spider::Profiling.stop if (@profiling_started)
    
end

#before(action = '', *arguments) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/spiderfw/controller/first_responder.rb', line 5

def before(action='', *arguments)
    # if Spider.conf.get('profiling.enable') && @request.env['QUERY_STRING'] =~ /profile=true/
    #     @profiling_started = Spider::Profiling.start
    # end
    catch :done do
        begin
            super
        rescue => exc
            self.done = true
            try_rescue(exc)
        end
    end
end

#execute(action = '', *arguments) ⇒ Object



19
20
21
22
23
24
25
26
27
28
# File 'lib/spiderfw/controller/first_responder.rb', line 19

def execute(action='', *arguments)
    catch :done do
        begin
            super
        rescue => exc
            self.done = true
            try_rescue(exc)
        end
    end
end