Module: AdminHelper

Defined in:
app/helpers/admin_helper.rb

Instance Method Summary collapse

Instance Method Details

#display_last_ip(user) ⇒ Object


11
12
13
14
15
# File 'app/helpers/admin_helper.rb', line 11

def display_last_ip(user)
  str = user. if user.
  str = user. if user.
  (str) ? str : ''
end

#display_last_login(user) ⇒ Object


3
4
5
6
7
8
9
# File 'app/helpers/admin_helper.rb', line 3

def (user)
  str = user.confirmation_sent_at if user.confirmation_sent_at
  str = user. if user.
  str = user. if user.
  return (l str, :format => "%Y-%m-%d") if str
  ''
end

#display_provider(user) ⇒ Object


17
18
19
# File 'app/helpers/admin_helper.rb', line 17

def display_provider(user)
  (user.provider.blank?) ? '' : user.provider.downcase.humanize
end