Module: Trestle::Auth::UserHelper

Defined in:
app/helpers/trestle/auth/user_helper.rb

Instance Method Summary collapse

Instance Method Details

#avatar_for(user) ⇒ Object



6
7
8
# File 'app/helpers/trestle/auth/user_helper.rb', line 6

def avatar_for(user)
  instance_exec(user, &Trestle.config.auth.avatar) if Trestle.config.auth.avatar
end

#format_user_name(user) ⇒ Object



2
3
4
# File 'app/helpers/trestle/auth/user_helper.rb', line 2

def format_user_name(user)
  instance_exec(user, &Trestle.config.auth.format_user_name)
end