lib/padrino-gen/generators/components/orms/mongoid.rb in padrino-gen-0.10.0 vs lib/padrino-gen/generators/components/orms/mongoid.rb in padrino-gen-0.10.1
- old
+ new
@@ -29,11 +29,10 @@
def setup_orm
require_dependencies 'bson_ext', :require => 'mongo'
require_dependencies 'mongoid'
require_dependencies('SystemTimer', :require => 'system_timer') if RUBY_VERSION =~ /1\.8/
create_file("config/database.rb", MONGOID.gsub(/!NAME!/, @app_name.underscore))
- empty_directory('app/models')
end
MONGOID_MODEL = (<<-MODEL) unless defined?(MONGOID_MODEL)
class !NAME!
include Mongoid::Document
@@ -64,6 +63,6 @@
# NO MIGRATION NEEDED
end
def create_migration_file(migration_name, name, columns)
# NO MIGRATION NEEDED
-end
\ No newline at end of file
+end