lib/rails/generators/neo4j_generator.rb in activegraph-10.0.0.pre.alpha.11 vs lib/rails/generators/neo4j_generator.rb in activegraph-10.0.0.pre.beta.1
- old
+ new
@@ -1,14 +1,14 @@
require 'rails/generators/named_base'
require 'rails/generators/active_model'
-module Neo4j
+module ActiveGraph
module Generators #:nodoc:
end
end
-module Neo4j::Generators::MigrationHelper
+module ActiveGraph::Generators::MigrationHelper
extend ActiveSupport::Concern
def base_migration_file_name(file_name, prefix = '')
"#{prefix}#{file_name.parameterize}"
end
@@ -51,11 +51,11 @@
# On revoke, we need to manually remove the file
FileUtils.rm(real_file_name) if @behavior == :revoke
end
end
-module Neo4j::Generators::SourcePathHelper
+module ActiveGraph::Generators::SourcePathHelper
extend ActiveSupport::Concern
module ClassMethods
def source_root
@_neo4j_source_root ||= File.expand_path(File.join(File.dirname(__FILE__),
@@ -63,10 +63,10 @@
end
end
end
-class Neo4j::Generators::ActiveModel < Rails::Generators::ActiveModel #:nodoc:
+class ActiveGraph::Generators::ActiveModel < Rails::Generators::ActiveModel #:nodoc:
def self.all(klass)
"#{klass}.all"
end
def self.find(klass, params = nil)