lib/padrino-gen/generators/components/orms/mongoid.rb in padrino-gen-0.9.20 vs lib/padrino-gen/generators/components/orms/mongoid.rb in padrino-gen-0.9.21

- old
+ new

@@ -26,11 +26,11 @@ # More installation and setup notes are on http://mongoid.org/docs/ MONGO def setup_orm require_dependencies 'bson_ext', :require => 'mongo' - require_dependencies 'mongoid' + require_dependencies 'mongoid', '2.0.0.beta.20' create_file("config/database.rb", MONGOID.gsub(/!NAME!/, @app_name.underscore)) empty_directory('app/models') end MONGOID_MODEL = (<<-MODEL) unless defined?(MONGOID_MODEL) @@ -64,6 +64,6 @@ # NO MIGRATION NEEDED end def create_migration_file(migration_name, name, columns) # NO MIGRATION NEEDED -end \ No newline at end of file +end