Module: Resque::Tabber
- Defined in:
- lib/resque-tabber.rb
Constant Summary collapse
- Version =
'0.0.1'
Class Method Summary collapse
Class Method Details
.add_tab(tab_name, tab_url) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/resque-tabber.rb', line 13 def add_tab(tab_name, tab_url) sinatra_url = url(tab_name) # Add a tab ::Resque::Server.class_eval %{ get "#{sinatra_url}" do redirect "#{tab_url}" end } # Create the action to redirect Resque::Server.tabs << tab_name end |