Skip to content

Commit 31ae8a8

Browse files
committed
Simplify ActiveRecord::ModelSchema.columns method
1 parent fd975a8 commit 31ae8a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

activerecord/lib/active_record/model_schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ def columns_hash # :nodoc:
431431
end
432432

433433
def columns
434-
load_schema unless @columns
435434
@columns ||= columns_hash.values.freeze
436435
end
437436

0 commit comments

Comments
 (0)