Class: AhoyCaptain::Widget

Inherits:
Object
  • Object
show all
Defined in:
app/models/ahoy_captain/widget.rb

Defined Under Namespace

Classes: WidgetDisabled

Class Method Summary collapse

Class Method Details

.disabled?(*names) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/ahoy_captain/widget.rb', line 11

def self.disabled?(*names)
  AhoyCaptain.config.disabled_widgets.include?(names.join("."))
end