Permalink
Browse files

namespacing and version bumping.

  • Loading branch information...
1 parent fa3829d commit babd6e9ef501bdd6091ab84dab187c2e1067179f @ahoward ahoward committed Jul 25, 2012
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency "carrierwave", ["~> 0.6.1"]
- s.add_dependency "mongoid", [">= 3.0.0"]
- s.add_dependency "mongoid-grid_fs", [">= 1.2.0"]
+ s.add_dependency "mongoid", ["~> 3.0.0"]
+ s.add_dependency "mongoid-grid_fs", ["~> 1.3.1"]
s.add_development_dependency "rspec", ["~> 2.6"]
s.add_development_dependency "rake", ["~> 0.9"]
s.add_development_dependency "mini_magick"
@@ -80,7 +80,7 @@ class CarrierWave::Uploader::Base
configure do |config|
config.storage_engines[:grid_fs] = "CarrierWave::Storage::GridFS"
-
+
config.grid_fs_access_url = "/"
if defined?(Rails.root)
@@ -70,7 +70,7 @@ class << File
attr_accessor :grid
end
- self.grid = ::GridFS
+ self.grid = ::Mongoid::GridFS
def grid
self.class.grid
@@ -111,7 +111,7 @@
before do
@uploader.stub!(:grid_fs_connection).and_return(@database)
- @grid = ::GridFs
+ @grid = ::Mongoid::GridFs
@storage = CarrierWave::Storage::GridFS.new(@uploader)
@file = stub_tempfile('test.jpg', 'application/xml')

0 comments on commit babd6e9

Please sign in to comment.