Module: SBFToolkit

Defined in:
lib/sbf-toolkit.rb,
lib/sbf_toolkit/version.rb,
lib/sbf_toolkit/component.rb,
lib/sbf_toolkit/components/footer.rb,
lib/sbf_toolkit/components/header.rb,
lib/sbf_toolkit/components/overlay.rb,
lib/sbf_toolkit/components/cms-tools.rb

Defined Under Namespace

Modules: Components Classes: Component

Constant Summary collapse

VERSION =
'3.15.2'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cache_enabledObject

Returns the value of attribute cache_enabled.



11
12
13
# File 'lib/sbf-toolkit.rb', line 11

def cache_enabled
  @cache_enabled
end

.image_rootObject



20
21
22
# File 'lib/sbf-toolkit.rb', line 20

def image_root
  @image_root || ''
end

Class Method Details

.cache_enabled?Boolean

Returns:

  • (Boolean)


14
15
16
17
18
# File 'lib/sbf-toolkit.rb', line 14

def cache_enabled?
  return @cache_enabled if @cache_enabled.is_a?(TrueClass) || @cache_enabled.is_a?(FalseClass)
  return false if ENV['rack_env'] == 'production' || ENV['rails_env'] == 'production'
  true
end