Sha256: 41f21139b543a29d4a856be1d8380ac556240494e5b3c4b7b27f9c3d350c913a
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
module Refile module Backgrounder module Attacher def background? record.respond_to? "#{name}_cache_id" end def cache_id super || (background? and record.send("#{name}_cache_id")) end def cache!(*) super record.send "#{name}_cache_id=", cache_id if background? end def store! super unless background? end end end end require 'refile/attacher' ::Refile::Attacher.send :prepend, Refile::Backgrounder::Attacher
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refile-backgrounder-0.0.2 | lib/refile/backgrounder/attacher.rb |
refile-backgrounder-0.0.1 | lib/refile/backgrounder/attacher.rb |