Method: Olivander::ApplicationHelper#user_image_path
- Defined in:
- app/helpers/olivander/application_helper.rb
#user_image_path(user) ⇒ Object
32 33 34 35 36 |
# File 'app/helpers/olivander/application_helper.rb', line 32 def user_image_path(user) return "avatar#{SecureRandom.random_number(4)}.png" unless user.present? && user.respond_to?(:avatar_path) user.avatar_path end |