app/models/kuhsaft/brick.rb in kuhsaft-1.6.0 vs app/models/kuhsaft/brick.rb in kuhsaft-1.7.0

- old
+ new

@@ -27,9 +27,16 @@ after_initialize do self.position ||= has_siblings? ? brick_list.bricks.maximum(:position).to_i + 1 : 1 end + after_save do + # TODO: replace callback with fulltext row on each + # searchable model + brick_list.update_fulltext + brick_list.save! + end + def to_edit_partial_path path = self.to_partial_path.split '/' path << 'edit' path.join '/' end