Created
April 28, 2015 16:01
-
-
Save sstarr/89f78b874d601b8bf37d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AvatarUploader < CarrierWave::Uploader::Base | |
# ... | |
def public_id | |
# 'production-profile-simon-starr' | |
return "#{Rails.env}-#{model.class.to_s.downcase}-#{model.profile.slug}" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment