Module: Resque::StagesServer

Includes:
ActionView::Helpers::DateHelper
Defined in:
lib/resque/stages_server.rb

Overview

Extends Resque Web Based UI. Structure has been borrowed from ResqueHistory.

Class Method Summary collapse

Class Method Details

.erb_path(filename) ⇒ Object



19
20
21
# File 'lib/resque/stages_server.rb', line 19

def erb_path(filename)
  File.join(File.dirname(__FILE__), "server", "views", filename)
end

.included(base) ⇒ Object



27
28
29
30
31
# File 'lib/resque/stages_server.rb', line 27

def included(base)
  add_page_views(base)
  add_button_callbacks(base)
  add_static_files(base)
end

.public_path(filename) ⇒ Object



23
24
25
# File 'lib/resque/stages_server.rb', line 23

def public_path(filename)
  File.join(File.dirname(__FILE__), "server", "public", filename)
end