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
Defined Under Namespace
Modules: Components Classes: Component
Constant Summary collapse
- VERSION =
'3.3.0'.freeze
Class Attribute Summary collapse
-
.cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
- .image_root ⇒ Object
Class Method Summary collapse
Class Attribute Details
.cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
10 11 12 |
# File 'lib/sbf-toolkit.rb', line 10 def cache_enabled @cache_enabled end |
.image_root ⇒ Object
19 20 21 |
# File 'lib/sbf-toolkit.rb', line 19 def image_root @image_root || '' end |
Class Method Details
.cache_enabled? ⇒ Boolean
13 14 15 16 17 |
# File 'lib/sbf-toolkit.rb', line 13 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 |