Module: ResqueRetry::Server

Defined in:
lib/resque-retry/server.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/resque-retry/server.rb', line 6

def self.included(base)
  base.class_eval do


    get "/retry" do
      # Is there a better way to specify alternate template locations with sinatra?
      erb File.read(File.join(File.dirname(__FILE__), 'server/views/retry.erb'))
    end

    get "/retry/:timestamp" do
      # Is there a better way to specify alternate template locations with sinatra?
      erb File.read(File.join(File.dirname(__FILE__), 'server/views/retry_timestamp.erb'))
    end


  end

end