Class: ResqueWeb::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/resque_web/application_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.subtabs(*tab_names) ⇒ Object



8
9
10
11
# File 'app/controllers/resque_web/application_controller.rb', line 8

def self.subtabs(*tab_names)
  return defined?(@subtabs) ? @subtabs : [] if tab_names.empty?
  @subtabs = tab_names
end

Instance Method Details

#set_subtabs(subtabs = self.class.subtabs) ⇒ Object



13
14
15
# File 'app/controllers/resque_web/application_controller.rb', line 13

def set_subtabs(subtabs = self.class.subtabs)
  @subtabs = subtabs
end