lib/para/orderable.rb in para-0.8.2.2 vs lib/para/orderable.rb in para-0.8.2.3
- old
+ new
@@ -4,10 +4,10 @@
included do
scope :ordered, -> { order("#{ table_name }.position ASC") }
before_create :orderable_assign_position
- after_commit :reprocess_ordering
+ after_commit :reprocess_ordering, on: :create
after_destroy :reprocess_ordering
end
private