Sha256: 29289eb33e29296f0991597092d7dcedfe0ec63ef5d8422c35ee23bac22539b7
Contents?: true
Size: 380 Bytes
Versions: 5
Compression:
Stored size: 380 Bytes
Contents
module Trestle::Auth::UserHelper def format_user_name(user) if user.respond_to?(:first_name) && user.respond_to?(:last_name) safe_join([user.first_name, content_tag(:strong, user.last_name)], " ") else display(user) end end def avatar_for(user) avatar { instance_exec(user, &Trestle.config.auth.avatar) } if Trestle.config.auth.avatar end end
Version data entries
5 entries across 5 versions & 1 rubygems