app/models/kuhsaft/brick.rb in kuhsaft-1.7.0 vs app/models/kuhsaft/brick.rb in kuhsaft-1.7.1
- old
+ new
@@ -34,9 +34,18 @@
# searchable model
brick_list.update_fulltext
brick_list.save!
end
+ # TODO: yes. temporary workaround. see above
+ def update_fulltext
+ if brick_list.is_a? Page
+ brick_list.update_fulltext
+ else
+ brick_list.brick_list.update_fulltext
+ end
+ end
+
def to_edit_partial_path
path = self.to_partial_path.split '/'
path << 'edit'
path.join '/'
end