Skip to content

Commit 3bc979b

Browse files
committed
Fix rubocop.
1 parent 9a786a7 commit 3bc979b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/rest_framework/controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ def readable_columns_or_associations
687687
next true if f.in?(columns)
688688

689689
# Skip polymorphic associations: they can't be JOINed, so filtering or ordering through them
690-
# (e.g. `?favorite.name=x` or `?ordering=favorite.name`) would raise. This method is the safe
691-
# field surface for those query features.
690+
# (e.g. `?favorite.name=x` or `?ordering=favorite.name`) would raise. This method is the
691+
# safe field surface for those query features.
692692
field = cfg[f]
693693
field&.[](:kind) == "association" && !field[:reflection]&.polymorphic?
694694
end

0 commit comments

Comments
 (0)