Skip to content

Commit dee911b

Browse files
authored
Merge pull request rails#53023 from fatkodima/simplify-model_schema-columns
Simplify `ActiveRecord::ModelSchema.columns` method
2 parents 5ff57a5 + 31ae8a8 commit dee911b

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)