eBooru/app/models/user_status.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

10 lines
175 B
Ruby

# frozen_string_literal: true
class UserStatus < ApplicationRecord
belongs_to :user
def self.for_user(user_id)
where("user_statuses.user_id = ?", user_id)
end
end