Module: SafetyCone::ConesHelper
- Includes:
- ViewHelpers
- Defined in:
- app/helpers/safety_cone/cones_helper.rb
Instance Method Summary
collapse
add_method, #feature?, #safetycone_alert, #safetycone_notice
Instance Method Details
#feature_status(key) ⇒ Object
11
12
13
|
# File 'app/helpers/safety_cone/cones_helper.rb', line 11
def feature_status(key)
feature?(key)
end
|
#status(key) ⇒ Object
5
6
7
8
9
|
# File 'app/helpers/safety_cone/cones_helper.rb', line 5
def status(key)
cone = Path.new(key, {})
cone.fetch
cone.type
end
|