aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-03-21 11:15:52 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-03-21 11:19:47 +0900
commitd2f9b8e800136e7587e8cd62bc3d9e5cb1be6f3b (patch)
tree7432564aa3ee3afcdfc27ae77252af8fec2bbe5d
parente04af4eb18503c7bd41b73d0cb6eecdff1893dc6 (diff)
downloadrails-d2f9b8e800136e7587e8cd62bc3d9e5cb1be6f3b.tar.gz
rails-d2f9b8e800136e7587e8cd62bc3d9e5cb1be6f3b.tar.bz2
rails-d2f9b8e800136e7587e8cd62bc3d9e5cb1be6f3b.zip
Address rubocop offences
-rw-r--r--actionpack/test/controller/new_base/content_negotiation_test.rb2
-rw-r--r--activerecord/lib/arel/nodes/select_core.rb16
2 files changed, 9 insertions, 9 deletions
diff --git a/actionpack/test/controller/new_base/content_negotiation_test.rb b/actionpack/test/controller/new_base/content_negotiation_test.rb
index 00b2798aeb..548fa4300d 100644
--- a/actionpack/test/controller/new_base/content_negotiation_test.rb
+++ b/actionpack/test/controller/new_base/content_negotiation_test.rb
@@ -32,7 +32,7 @@ module ContentNegotiation
test "Unregistered mimes are ignored" do
get "/content_negotiation/basic/all", headers: { "HTTP_ACCEPT" => "text/plain, mime/another" }
- assert_body '[:text]'
+ assert_body "[:text]"
end
end
end
diff --git a/activerecord/lib/arel/nodes/select_core.rb b/activerecord/lib/arel/nodes/select_core.rb
index 6585f9b3ec..5df6ac8412 100644
--- a/activerecord/lib/arel/nodes/select_core.rb
+++ b/activerecord/lib/arel/nodes/select_core.rb
@@ -8,16 +8,16 @@ module Arel # :nodoc: all
def initialize
super()
- @source = JoinSource.new nil
+ @source = JoinSource.new nil
- @optimizer_hints = nil
# https://ronsavage.github.io/SQL/sql-92.bnf.html#set%20quantifier
- @set_quantifier = nil
- @projections = []
- @wheres = []
- @groups = []
- @havings = []
- @windows = []
+ @set_quantifier = nil
+ @optimizer_hints = nil
+ @projections = []
+ @wheres = []
+ @groups = []
+ @havings = []
+ @windows = []
end
def from