Sha256: a2c623bb0154115bc36adb93f147156f0a8d6a3100a6b721cfbe9cef3deeda6c

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 KB

Contents

module Spider
    
    module FirstResponder
        
        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
        
        def execute(action='', *arguments)
            catch :done do
                begin
                    super
                rescue => exc
                    self.done = true
                    try_rescue(exc)
                end
            end
        end
        
        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
        
        
    end
    
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spiderfw-0.6.6 lib/spiderfw/controller/first_responder.rb
spiderfw-0.6.5 lib/spiderfw/controller/first_responder.rb
spiderfw-0.6.4 lib/spiderfw/controller/first_responder.rb
spiderfw-0.6.3 lib/spiderfw/controller/first_responder.rb
spiderfw-0.6.2 lib/spiderfw/controller/first_responder.rb
spiderfw-0.6.1 lib/spiderfw/controller/first_responder.rb
spiderfw-0.6.0 lib/spiderfw/controller/first_responder.rb