diogob / carrierwave-postgresql

Use PostgreSQL large objects (AKA BLOBs) to store your files inside the database
http://diogob.github.com/carrierwave-postgresql/
MIT License
56 stars 25 forks source link

Stop reading oid from the mounted on attributes. #24

Closed lsylvester closed 8 years ago

lsylvester commented 9 years ago

If the uploader was mounted using the mount_on option, then it will currently try to read the oid from the wrong attribute.

For example, with the uploader

mount_uploader :file, FileUploader, mount_on: :file_oid

it will try to read the oid from the file column instead of from the file_oid column where it is stored.

diogob commented 8 years ago

Sorry for the delay. Thanks for the PR :+1: