Enable frozen string literals.
Make all string literals immutable by default.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Favorite < ApplicationRecord
|
||||
belongs_to :post, counter_cache: :fav_count
|
||||
belongs_to :user, counter_cache: :favorite_count
|
||||
|
||||
Reference in New Issue
Block a user