module Refile::Backgrounder::Attacher

Public Instance Methods

background?() click to toggle source
# File lib/refile/backgrounder/attacher.rb, line 5
def background?
  record.respond_to? "#{name}_cache_id"
end
cache_id() click to toggle source
Calls superclass method
# File lib/refile/backgrounder/attacher.rb, line 9
def cache_id
  super || (background? and record.send("#{name}_cache_id"))
end
save_cache_id() click to toggle source
# File lib/refile/backgrounder/attacher.rb, line 22
def save_cache_id
  record.send "#{name}_cache_id=", cache_id if background?
end
set(*) click to toggle source
Calls superclass method
# File lib/refile/backgrounder/attacher.rb, line 13
def set(*)
  super
  save_cache_id
end
store!() click to toggle source
Calls superclass method
# File lib/refile/backgrounder/attacher.rb, line 18
def store!
  super unless background?
end