posts: remove unused data-views data attribute.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user