Skip to content

Commit

Permalink
Addresses class caching problem where classes were not being reloaded…
Browse files Browse the repository at this point in the history
… properly when rails reloaded changed code.

It was leading to this issue in devise-neo4j:
neo4jrb/devise-activegraph#16
  • Loading branch information
thermistor committed Jul 21, 2015
1 parent 2a571c5 commit a2a31f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/neo4j/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def register_neo4j_cypher_logging
register_neo4j_cypher_logging if Neo4j::Config[:log_cypher_queries]
end

config.to_prepare do
Neo4j::ActiveNode::Labels::MODELS_FOR_LABELS_CACHE.clear
end

console do
register_neo4j_cypher_logging
end
Expand Down

0 comments on commit a2a31f1

Please sign in to comment.