Skip to content

Clarity: What should happen when I fetch a record from the DB? #19

Open
@cgat

Description

@cgat

Hi,

Currently, if I create a record that utilizes carrierwave::meta on its carrierwave mounted column, the metadata is loaded as instance values. If I fetch the record again my_model= MyModel.find(1) though, I have to manually call my_model.image.store_meta to get the metadata to load. I'm wondering if this is by design? If so, I guess the best way to handle this case is to call the store_meta method on the uploader in an initialization callback.

Btw, love the gem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions