diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-12 11:36:26 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-12 11:36:26 +0100 |
commit | 05d0d583cb03182e0d7c246c84e7f3ccd55a51a1 (patch) | |
tree | 159ee256db108e1ba77fe86333e0c964545c2a3f | |
parent | 7ac45e7192d5f997acd21564cf163134f1c34c77 (diff) |
Return column name when iterating over admin fields.
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 57fce429c..573649b8f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -409,7 +409,7 @@ class User < ActiveRecord::Base columns = self.class.content_columns.map{|c| c if %w(created_at updated_at admin_level email_confirmed).include?(c.name) }.compact end columns.each do |column| - yield(column.human_name, self.send(column.name), column.type.to_s) + yield(column.human_name, self.send(column.name), column.type.to_s, column.name) end end |