fixes #2454: Add a new popular posts page for view counts

This commit is contained in:
r888888888
2015-07-24 15:55:24 -07:00
parent cb57b08d54
commit cc6da3ff89
8 changed files with 145 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ class Post < ActiveRecord::Base
:has_embedded_notes => 0x0001
}
attr_accessor :old_tag_string, :old_parent_id, :old_source, :old_rating, :has_constraints, :disable_versioning
attr_accessor :old_tag_string, :old_parent_id, :old_source, :old_rating, :has_constraints, :disable_versioning, :view_count
after_destroy :delete_files
after_destroy :delete_remote_files
after_save :create_version