Browse files

changed AR#base#column_names, now instance variable @column_names eve…

…r assigned
  • Loading branch information...
1 parent 1dd90f8 commit 6f3d3850f503c814e67109f3614104fe49bc6bcf le_fnord committed May 11, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/base.rb
View
3 activerecord/lib/active_record/base.rb
@@ -701,7 +701,8 @@ def columns_hash
# Returns an array of column names as strings.
def column_names
- @column_names ||= columns.map { |column| column.name }
+ @column_names = columns.map { |column| column.name }
+ # @column_names ||= columns.map { |column| column.name }
end
# Returns an array of column objects where the primary id, all columns ending in "_id" or "_count",

0 comments on commit 6f3d385

Please sign in to comment.