aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/engine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/engine.rb')
-rw-r--r--activerecord/test/models/engine.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/models/engine.rb b/activerecord/test/models/engine.rb
index 851ff8c22b..396a52b3b9 100644
--- a/activerecord/test/models/engine.rb
+++ b/activerecord/test/models/engine.rb
@@ -1,4 +1,5 @@
+# frozen_string_literal: true
+
class Engine < ActiveRecord::Base
- belongs_to :my_car, :class_name => 'Car', :foreign_key => 'car_id', :counter_cache => :engines_count
+ belongs_to :my_car, class_name: "Car", foreign_key: "car_id", counter_cache: :engines_count
end
-