Module: Trestle::Omniauth::UserHelper

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

Instance Method Summary collapse

Instance Method Details

#avatar_for(user) ⇒ Object



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

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

#format_user_name(user) ⇒ Object



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

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