Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix

  • Loading branch information...
commit f9dd1344a6888c7c9809a5f79cdbc3db760917c6 1 parent 6132120
Abdul Rauf authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/gluttonberg/library/storage/s3.rb
View
4 lib/gluttonberg/library/storage/s3.rb
@@ -59,7 +59,7 @@ def self.migrate_file_to_s3(asset_hash , file_name)
else
key.put(File.open(local_file), 'public-read', {"Expires" => date.rfc2822})
end
- asset.update_attributes(:copied_to_s3 => true)
+ Gluttonberg::Asset.update_attributes(:copied_to_s3 => true)
puts "Copied"
end
end
@@ -152,7 +152,7 @@ def copy_file_to_s3(file_name)
else
key.put(File.open(local_file), 'public-read', {"Expires" => date.rfc2822})
end
- self.update_attributes(:copied_to_s3 => true)
+ self.update_column(:copied_to_s3 , true)
puts "Copied"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.