Skip to content

Commit e52c4af

Browse files
committed
rubocops
1 parent 507be83 commit e52c4af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/active_record/virtual_attributes/virtual_fields.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def grouped_records
191191
# rubocop:enable Lint/AmbiguousOperatorPrecedence
192192

193193
# branched.rb 7.0
194+
# rubocop:disable Style/MultilineBlockChain
194195
def preloaders_for_reflection(reflection, reflection_records)
195196
reflection_records.group_by do |record|
196197
# begin virtual_attributes changes
@@ -212,6 +213,7 @@ def preloaders_for_reflection(reflection, reflection_records)
212213
end
213214
end
214215
end)
216+
# rubocop:enable Style/MultilineBlockChain
215217
end
216218
end
217219
end

spec/spec_helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
end
66
end
77

8-
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
9-
8+
$LOAD_PATH.unshift File.expand_path("../../lib", __dir__)
109
require "bundler/setup"
1110
require "active_record/virtual_attributes"
1211
require "active_record/virtual_attributes/rspec"

0 commit comments

Comments
 (0)