lib/padrino-gen/generators/components/orms/mongomapper.rb in padrino-gen-0.10.7 vs lib/padrino-gen/generators/components/orms/mongomapper.rb in padrino-gen-0.11.0

- old
+ new

@@ -7,13 +7,13 @@ when :test then MongoMapper.database = '!NAME!_test' end MONGO def setup_orm - require_dependencies 'bson_ext', :require => 'mongo' require_dependencies 'mongo_mapper' + require_dependencies 'bson_ext', :require => 'mongo' require_dependencies('SystemTimer', :require => 'system_timer') if RUBY_VERSION =~ /1\.8/ && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby') - create_file("config/database.rb", MONGO.gsub(/!NAME!/, @app_name.underscore)) + create_file("config/database.rb", MONGO.gsub(/!NAME!/, @project_name.underscore)) end MM_MODEL = (<<-MODEL) unless defined?(MM_MODEL) class !NAME! include MongoMapper::Document