Sha256: d86cb39b79a0a86b1284387b2b1f1165e3cf50d2899b3845668bf71e6044f31e

Contents?: true

Size: 248 Bytes

Versions: 10

Compression:

Stored size: 248 Bytes

Contents

module Trestle::Auth::UserHelper
  def format_user_name(user)
    instance_exec(user, &Trestle.config.auth.format_user_name)
  end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trestle-auth-0.5.0 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.5.0.pre2 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.5.0.pre app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.4.4 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.4.3 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.4.2 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.4.1 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.4.0 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.3.0 app/helpers/trestle/auth/user_helper.rb
trestle-auth-0.2.5 app/helpers/trestle/auth/user_helper.rb