Display the wp_user.login in the table

This commit is contained in:
erwanlr
2013-04-13 23:28:24 +02:00
parent f7a15e67cd
commit 271cd71c20

View File

@@ -9,11 +9,11 @@ class WpUsers < WpItems
# @return [ void ] # @return [ void ]
def output(options = {}) def output(options = {})
rows = [] rows = []
headings = ['Id', 'Name'] headings = ['Id', 'Login', 'Name']
headings << 'Password' if options[:show_password] headings << 'Password' if options[:show_password]
self.each do |wp_user| self.each do |wp_user|
row = [wp_user.id, wp_user.display_name] row = [wp_user.id, wp_user.login, wp_user.display_name]
row << wp_user.password if options[:show_password] row << wp_user.password if options[:show_password]
rows << row rows << row
end end