Module: ContextExposer::Integrations::WithDecentExposure::ClassMethods
- Defined in:
- lib/context_exposer/integrations/with_decent_exposure.rb
Instance Method Summary collapse
-
#context_expose_decently(options = {}) ⇒ Object
(also: #expose_decently)
expose all exposures exposed by decent_exposure to context.
Instance Method Details
#context_expose_decently(options = {}) ⇒ Object Also known as: expose_decently
expose all exposures exposed by decent_exposure to context
7 8 9 10 11 12 13 14 15 |
# File 'lib/context_exposer/integrations/with_decent_exposure.rb', line 7 def context_expose_decently = {} expose_keys = _exposures.keys _exposure_filter(expose_keys, ).each do |exposure| exposed exposure do send(exposure) end end end |