posts: remove unused data-views data attribute.

This commit is contained in:
evazion
2021-01-14 13:31:27 -06:00
parent 1b30b71a07
commit 966a7aa71c
2 changed files with 1 additions and 2 deletions

View File

@@ -95,7 +95,6 @@ class PostPreviewComponent < ApplicationComponent
"data-parent-id" => post.parent_id,
"data-has-children" => post.has_children?,
"data-score" => post.score,
"data-views" => post.view_count,
"data-fav-count" => post.fav_count,
"data-pixiv-id" => post.pixiv_id,
"data-file-ext" => post.file_ext,

View File

@@ -58,7 +58,7 @@ class Post < ApplicationRecord
has_many :favorited_users, through: :favorites, source: :user
has_many :replacements, class_name: "PostReplacement", :dependent => :destroy
attr_accessor :old_tag_string, :old_parent_id, :old_source, :old_rating, :has_constraints, :disable_versioning, :view_count
attr_accessor :old_tag_string, :old_parent_id, :old_source, :old_rating, :has_constraints, :disable_versioning
scope :pending, -> { where(is_pending: true) }
scope :flagged, -> { where(is_flagged: true) }