about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-15 12:37:43 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-15 12:37:43 +0200
commit4d336ceface783c255e62220cfa76812630ff1a1 (patch)
tree72407fd4b5368d3e8cdfd4c85ae928a654d8d261 /app/models
parent20f581f79669118a1a4052408078d53c7bbe83f2 (diff)
Add sync command for neo4j, fix configuration, add neo4j to docker-compose, fix seed
Diffstat (limited to 'app/models')
-rw-r--r--app/models/follow.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/follow.rb b/app/models/follow.rb
index 95b6bd146..656b28d35 100644
--- a/app/models/follow.rb
+++ b/app/models/follow.rb
@@ -26,6 +26,10 @@ class Follow < ApplicationRecord
   after_create  :add_to_graph
   after_destroy :remove_from_graph
 
+  def sync!
+    add_to_graph
+  end
+
   private
 
   def add_to_graph