Module: LoyalCore::ActsAsHasAvatar::ClassMethods
- Defined in:
- lib/loyal_core/acts/has_avatar.rb
Instance Method Summary collapse
Instance Method Details
#loyal_core_acts_as_has_avatar(*args) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/loyal_core/acts/has_avatar.rb', line 20 def loyal_core_acts_as_has_avatar(*args) = args. field_name = args.first || :avatar attr_accessible field_name, :"#{field_name}_cache" mount_uploader field_name, ::LoyalCore::AvatarUploader end |