eBooru/app/models/edit_history.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

14 lines
265 B
Ruby

# frozen_string_literal: true
class EditHistory < ApplicationRecord
self.table_name = 'edit_histories'
belongs_to :versionable, polymorphic: true
belongs_to :user
TYPE_MAP = {
comment: 'Comment',
forum: 'ForumPost',
blip: 'Blip'
}
end