Sha256: 8e7f4fe8c1a2fa9eaaddfa216659ad8d8956a2fff1d890c9e76e71bf16f80717
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
module Draper module ViewContext def self.current Thread.current[:current_view_context] || view_context end def self.current=(input) Thread.current[:current_view_context] = input end def view_context super.tap do |context| Draper::ViewContext.current = context end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-0.16.0 | lib/draper/view_context.rb |