Sha256: 1e87de629151a4babb39d5b34ddc1ddf6407fa836d520aed98e90d3939089a22
Contents?: true
Size: 253 Bytes
Versions: 4
Compression:
Stored size: 253 Bytes
Contents
module Draper module ViewContext def set_current_view_context Thread.current[:current_view_context] = self.view_context end def self.included(source) source.send(:before_filter, :set_current_view_context) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
draper-0.9.3 | lib/draper/view_context.rb |
draper-0.9.2 | lib/draper/view_context.rb |
draper-0.9.1 | lib/draper/view_context.rb |
draper-0.9.0 | lib/draper/view_context.rb |