diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-05 18:30:29 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-05 18:31:53 +0200 |
commit | c2fa570e2ec853c2e29325cbc4e90d03f7095f22 (patch) | |
tree | fc2d849875a05f8b81c704db74073afd0ad35cdf /lib/active_vault/attached | |
parent | 5492be52103d2237a8782a86f0f6f89d2fb5a06e (diff) | |
download | rails-c2fa570e2ec853c2e29325cbc4e90d03f7095f22.tar.gz rails-c2fa570e2ec853c2e29325cbc4e90d03f7095f22.tar.bz2 rails-c2fa570e2ec853c2e29325cbc4e90d03f7095f22.zip |
Moving this to the macro definition
Diffstat (limited to 'lib/active_vault/attached')
-rw-r--r-- | lib/active_vault/attached/one.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/active_vault/attached/one.rb b/lib/active_vault/attached/one.rb index 9bf83254c0..01a5d0d6f0 100644 --- a/lib/active_vault/attached/one.rb +++ b/lib/active_vault/attached/one.rb @@ -6,10 +6,6 @@ class ActiveVault::Attached::One < ActiveVault::Attached end def attach(attachable) - if @attachment - # FIXME: Have options to declare dependent: :purge to clean up - end - @attachment = ActiveVault::Attachment.create!(record_gid: record.to_gid.to_s, name: name, blob: create_blob_from(attachable)) end |