Class: Plug::Resources::SiteNotice

Inherits:
ActiveResource::Base
  • Object
show all
Includes:
Concerns::Themeable
Defined in:
app/models/plug/resources/site_notice.rb

Instance Method Summary collapse

Instance Method Details

#disabled? ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/models/plug/resources/site_notice.rb', line 12

def disabled?
  state == 'disabled'
end

#enabled? ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/models/plug/resources/site_notice.rb', line 8

def enabled?
  state == 'enabled'
end