adding modified design.rb for sloving dup prob
This commit is contained in:
1 parent
2f4c2b2d9b
commit
6903dc3037
1 file changed
+3
-1
@@ -36,7 +36,9 @@ class Design
|
||||
def files=(attrs)
|
||||
files = eval(attrs.last)
|
||||
attrs[0].each do |a|
|
||||
files.build(:file => a[:file], :to_save => true)
|
||||
if(a[:id].nil?)
|
||||
files.build(:file => a[:file], :to_save => true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user