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

- old
+ new

@@ -26,10 +26,10 @@ # More installation and setup notes are on http://mongoid.org/docs/ MONGO def setup_orm require_dependencies 'bson_ext', :require => 'mongo' - require_dependencies 'mongoid', '2.0.0.beta.20' + require_dependencies 'mongoid', :version => '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)