From b83511e3c1ca341be6230f4d5922a0d076cf774f Mon Sep 17 00:00:00 2001 From: ahoward Date: Tue, 24 Jul 2012 21:35:18 -0600 Subject: [PATCH] namespacing. sigh. --- lib/mongoid-grid_fs.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mongoid-grid_fs.rb b/lib/mongoid-grid_fs.rb index 9090321..92e7104 100644 --- a/lib/mongoid-grid_fs.rb +++ b/lib/mongoid-grid_fs.rb @@ -2,7 +2,7 @@ # module Mongoid class GridFS - const_set :Version, '1.3.0' + const_set :Version, '1.3.1' class << GridFS def version @@ -85,8 +85,8 @@ to_delegate.each do |method| class_eval <<-__ - def GridFS.#{ method }(*args, &block) - ::GridFS::Fs::#{ method }(*args, &block) + def self.#{ method }(*args, &block) + ::Mongoid::GridFS::Fs::#{ method }(*args, &block) end __ end