Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any idea for paperclip integration or attachment ? #3

Closed
jackbit opened this issue Mar 26, 2013 · 2 comments
Closed

Any idea for paperclip integration or attachment ? #3

jackbit opened this issue Mar 26, 2013 · 2 comments
Labels

Comments

@jackbit
Copy link

jackbit commented Mar 26, 2013

Hi Ostrovskiy,

Do you know the best method to integrate this eav_hashes with paperclip?
example, i would like to add dynamic attachment for a products:
attachment for certification
attachment for insurrance
attachment for id card
attachment for what ever user created

it would be nice if you have method for it. Thanks for your help.

cheers :)

@iostat
Copy link
Owner

iostat commented Mar 26, 2013

While I have very little experience with Paperclip, I would imagine that you could make a separate "Attachment" model containing an attachment. However, since you would've already pulled out the attachment into its own model, you can have it have a name attribute and make it belongs_to your original model, which would forgo the need to use eav_hashes in the first place!

@iostat iostat closed this as completed Mar 26, 2013
@iostat
Copy link
Owner

iostat commented Mar 26, 2013

Closed as this is not an issue with eav_hashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants