lib/rails/generators/neo4j/model/model_generator.rb in neo4j-6.1.3 vs lib/rails/generators/neo4j/model/model_generator.rb in neo4j-6.1.4
- old
+ new
@@ -10,10 +10,10 @@
class_option :indices, type: :array, desc: 'The properties which should be indexed'
class_option :has_one, type: :array, desc: 'A list of has_one relationships'
class_option :has_many, type: :array, desc: 'A list of has_many relationships'
def create_model_file
- template 'model.erb', File.join('app/models', "#{singular_name}.rb")
+ template 'model.erb', File.join('app/models', class_path, "#{singular_name}.rb")
end
protected
def migration?