Class: ResqueWeb::ApplicationController

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.subtabs(*tab_names) ⇒ Object



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

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



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

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