Fork from acts_as_file