@@ -141,7 +141,6 class Attachment < ActiveRecord::Base | |||||
141 | # :unsaved => array of the files that could not be attached |
|
141 | # :unsaved => array of the files that could not be attached | |
142 | def self.attach_files(obj, attachments) |
|
142 | def self.attach_files(obj, attachments) | |
143 | attached = [] |
|
143 | attached = [] | |
144 | unsaved = [] |
|
|||
145 | if attachments && attachments.is_a?(Hash) |
|
144 | if attachments && attachments.is_a?(Hash) | |
146 | attachments.each_value do |attachment| |
|
145 | attachments.each_value do |attachment| | |
147 | file = attachment['file'] |
|
146 | file = attachment['file'] |
General Comments 0
You need to be logged in to leave comments.
Login now