You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource.attachment.filename always returns nil due to CarrierWave not being able to access the underlying identifier column. This occurs when the identifier column has the same name as the Uploader property (which currently is the only way to use carrierwave-datamapper due to issue #9).
However, I can directly access the identifier column using instance_variable_get("@attachment"). Also, resource.attachment.path behaves as expected.
resource.attachment.filenamealways returnsnildue to CarrierWave not being able to access the underlying identifier column. This occurs when the identifier column has the same name as the Uploader property (which currently is the only way to use carrierwave-datamapper due to issue #9).However, I can directly access the identifier column using
instance_variable_get("@attachment"). Also,resource.attachment.pathbehaves as expected.carrierwaveuploader/carrierwave#249
Environment details: