Skip to content

Commit

Permalink
changed AR#base#column_names, now instance variable @column_names eve…
Browse files Browse the repository at this point in the history
…r assigned
  • Loading branch information
le_fnord committed May 11, 2011
1 parent 1dd90f8 commit 6f3d385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -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",
Expand Down

0 comments on commit 6f3d385

Please sign in to comment.