aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-07-31 17:42:27 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-07-31 17:48:14 +0900
commit4c8c8c87b07844b26564ca6aa2052660e601bc3d (patch)
treec6e1863a91618c017de9c5fd92a8240b177256e7 /activerecord
parent511d1abc8ad523aa3592e30b4ecf4dac92a2a352 (diff)
downloadrails-4c8c8c87b07844b26564ca6aa2052660e601bc3d.tar.gz
rails-4c8c8c87b07844b26564ca6aa2052660e601bc3d.tar.bz2
rails-4c8c8c87b07844b26564ca6aa2052660e601bc3d.zip
Address to rubocop offences
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/arel/visitors/oracle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/arel/visitors/oracle.rb b/activerecord/lib/arel/visitors/oracle.rb
index c54aec71a6..a0a74d365c 100644
--- a/activerecord/lib/arel/visitors/oracle.rb
+++ b/activerecord/lib/arel/visitors/oracle.rb
@@ -122,7 +122,7 @@ module Arel # :nodoc: all
o.orders = []
orders.each_with_index do |order, i|
o.orders <<
- Nodes::SqlLiteral.new("alias_#{i}__#{' DESC' if /\bdesc$/i === order}")
+ Nodes::SqlLiteral.new("alias_#{i}__#{' DESC' if /\bdesc$/i.match?(order)}")
end
o
end