From 6db972782903af639139f6c2ec36c1fe4d952210 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 13 Apr 2011 16:39:46 +0800 Subject: [PATCH] revert to mongoid 2.0.0 and remove reroute_middleware --- Gemfile | 7 +------ Gemfile.lock | 10 +++++----- config/application.rb | 3 --- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Gemfile b/Gemfile index dd0b93a4..19881bb4 100644 --- a/Gemfile +++ b/Gemfile @@ -6,13 +6,8 @@ gem 'bson_ext' gem 'carrierwave' gem 'devise' gem 'mini_magick' -<<<<<<< HEAD -gem 'mongoid' - # gem 'rblog', :path => 'lib/rblog' -======= -gem 'mongoid', '2.0.1' ->>>>>>> 7bdfe52... update radius, modify routes to handle modules, add blog module +gem 'mongoid', '2.0.0' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' diff --git a/Gemfile.lock b/Gemfile.lock index a5020e6b..f9f12dd8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -31,7 +31,7 @@ GEM arel (2.0.9) bcrypt-ruby (2.1.4) bson (1.3.0) - bson_ext (1.2.0) + bson_ext (1.2.4) builder (2.1.2) carrierwave (0.5.3) activesupport (~> 3.0) @@ -52,9 +52,9 @@ GEM subexec (~> 0.0.4) mongo (1.3.0) bson (>= 1.3.0) - mongoid (2.0.1) + mongoid (2.0.0) activemodel (~> 3.0) - mongo (~> 1.3) + mongo (~> 1.2) tzinfo (~> 0.3.22) will_paginate (~> 3.0.pre) orm_adapter (0.0.4) @@ -82,7 +82,7 @@ GEM thor (0.14.6) treetop (1.4.9) polyglot (>= 0.3.1) - tzinfo (0.3.25) + tzinfo (0.3.26) warden (1.0.3) rack (>= 1.0.0) will_paginate (3.0.pre2) @@ -95,5 +95,5 @@ DEPENDENCIES carrierwave devise mini_magick - mongoid (= 2.0.1) + mongoid (= 2.0.0) rails (= 3.0.3) diff --git a/config/application.rb b/config/application.rb index ea53c32e..d436dc1f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -6,7 +6,6 @@ require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" -require File.expand_path('lib/reroute_middleware') # If you have a Gemfile, require the gems listed there, including any gems # you've limited to :test, :development, or :production. @@ -15,8 +14,6 @@ Bundler.require(:default, Rails.env) if defined?(Bundler) module PrototypeR4 class Application < Rails::Application - config.middleware.use RerouteMiddleware - config.paths.vendor.plugins.instance_variable_set("@paths", config.paths.vendor.plugins.instance_variable_get("@paths") + ["#{config.root}/vendor/built_in_modules"]) config.paths.vendor.plugins.instance_variable_set("@paths", config.paths.vendor.plugins.instance_variable_get("@paths") + ["#{config.root}/vendor/downloaded_modules"]) config.paths.vendor.plugins.instance_variable_set("@paths", config.paths.vendor.plugins.instance_variable_get("@paths") + ["#{config.root}/vendor/radius"])