attachinary
attachinary copied to clipboard
Add custom fields to Attachinary::File
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 I also have a scenario saving more data to Attachinary::File, have you found any way to do it yet?
@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.