FIX: Load post revisions in correct order

This commit is contained in:
Gerhard Schlager
2018-05-28 11:24:54 +02:00
parent ef84099db1
commit ed2ae3cb0a
2 changed files with 2 additions and 3 deletions

View File

@@ -4,6 +4,8 @@ class PostRevision < ActiveRecord::Base
belongs_to :post
belongs_to :user
default_scope { order('number ASC') }
serialize :modifications, Hash
after_create :create_notification