attachinary icon indicating copy to clipboard operation
attachinary copied to clipboard

Add custom fields to Attachinary::File

Open kbaum opened this issue 11 years ago • 2 comments

Is there a way to add custom fields like user_id to the Attachinary::File active record object? Would love to be able to use attachinary but be able to track who added the attachments.

thx!

kbaum avatar Aug 13 '13 21:08 kbaum

@kbaum I also have a scenario saving more data to Attachinary::File, have you found any way to do it yet?

samnang avatar Jul 24 '15 07:07 samnang

@samnang i have added this to a rails initializer:

https://gist.github.com/d66d0d7fa05e246151ea

User.current_user is set in a rails application controller filter on every request.

kbaum avatar Aug 03 '15 12:08 kbaum