generators/templates/source/models/ruby/model.rb in rhoconnect-4.0.0.beta.12 vs generators/templates/source/models/ruby/model.rb in rhoconnect-4.0.0.beta.24
- old
+ new
@@ -36,17 +36,11 @@
def logoff
# TODO: Logout from the data source if necessary
end
- # Calling super here returns rack tempfile path:
- # i.e. /var/folders/J4/J4wGJ-r6H7S313GEZ-Xx5E+++TI
- # Note: This tempfile is removed when server stops or crashes...
- # See http://rack.rubyforge.org/doc/Multipart.html for more info
- #
- # Uncomment this code and override it by creating a copy of the file somewhere
- # and returning the path to that file (then don't call super!):
- # i.e. /mnt/myimages/soccer.png
- #def store_blob(object,field_name,blob)
- # super #=> returns blob[:tempfile]
- #end
+ def store_blob(object,field_name,blob)
+ # TODO: Handle post requests for blobs here.
+ # make sure you store the blob object somewhere permanently
+ raise "Please provide some code to handle blobs if you are using them."
+ end
end
\ No newline at end of file