forked from External/greenlight
Fixed issues with rubocop (#916)
This commit is contained in:
committed by
farhatahmad
parent
09de6b6739
commit
c13a83a3f3
@ -48,9 +48,7 @@ class Room < ApplicationRecord
|
||||
# Include the owner of the table
|
||||
table = joins(:owner)
|
||||
|
||||
if table.column_names.include?(column) || column == "users.name"
|
||||
return table.order(Arel.sql("#{column} #{direction}"))
|
||||
end
|
||||
return table.order(Arel.sql("#{column} #{direction}")) if table.column_names.include?(column) || column == "users.name"
|
||||
|
||||
table
|
||||
end
|
||||
|
Reference in New Issue
Block a user