Method: Refile::Attacher#store!

Defined in:
lib/refile/attacher.rb

#store!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



66
67
68
69
70
71
72
73
74
# File 'lib/refile/attacher.rb', line 66

def store!
  if remove?
    delete!
  elsif cached?
    file = store.upload(cache.get(cache_id))
    delete!
    self.id = file.id
  end
end