Sha256: 81603c0a294677183e46403bd1a774e7990a6c46a1ee4ced01d36fb3ddf8245a
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
module ActiveDecorator module ViewContext class << self def current Thread.current[:view_context] end def current=(view_context) Thread.current[:view_context] = view_context end end module Filter extend ActiveSupport::Concern included do before_filter do |controller| ActiveDecorator::ViewContext.current = controller.view_context end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems