Sha256: 9d3007467c60c6a8ff378109b147391dfb7c9ab91995efa9a964ce3742abc02a
Contents?: true
Size: 312 Bytes
Versions: 2
Compression:
Stored size: 312 Bytes
Contents
module ContextExposer module ViewHelpers def render_ctx *args opts = args.last if opts.kind_of?(Hash) && opts[:locals] args.last[:locals].merge!(page_context: ContextExposer::PageContext.instance) end super *args end def ctx page_context.ctx end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
context_exposer-0.4.1 | lib/context_exposer/view_helpers.rb |
context_exposer-0.4.0 | lib/context_exposer/view_helpers.rb |