Sha256: 1b3dcb5916f6a67faae5d7fce8af82055b7bdc238f39e095ee8855efea6f305e
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
# This module contains all the Avatar-related methods of a User. # The avatar feature is done using the refile gem. # # Have a look at: # * https://www.gorails.com/episodes/file-uploads-with-refile # * https://github.com/refile/refile # module UserAvatar extend ActiveSupport::Concern included do attachment :avatar, type: :image attr_accessible :avatar, :remove_avatar if defined? attr_accessible end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | app/models/concerns/user_avatar.rb |
your_platform-1.0.0 | app/models/concerns/user_avatar.rb |