mirror of https://github.com/rails/rails
Merge pull request #50487 from nubinary/fix/unneccesary-readonly-attributes-to-a
Remove unnecessary to_a conversion for readonly_attributes method call
This commit is contained in:
commit
f963d4a7f2
|
@ -198,7 +198,7 @@ module ActiveRecord
|
||||||
|
|
||||||
|
|
||||||
def readonly_columns
|
def readonly_columns
|
||||||
primary_keys + model.readonly_attributes.to_a
|
primary_keys + model.readonly_attributes
|
||||||
end
|
end
|
||||||
|
|
||||||
def unique_by_columns
|
def unique_by_columns
|
||||||
|
|
Loading…
Reference in New Issue