Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def img= image
self.has_image = true
AWS::S3.new.buckets[:images_cloudstock].objects[id].write(image.read)
end
def img
AWS::S3.new.buckets[:images_cloudstock].objects[id].url_for(:read) if has_image
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment