namespacing. sigh.

This commit is contained in:
ahoward 2012-07-24 21:35:18 -06:00
parent b823b46425
commit b83511e3c1

View File

@ -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