namespacing. sigh.
This commit is contained in:
parent
b823b46425
commit
b83511e3c1
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
module Mongoid
|
module Mongoid
|
||||||
class GridFS
|
class GridFS
|
||||||
const_set :Version, '1.3.0'
|
const_set :Version, '1.3.1'
|
||||||
|
|
||||||
class << GridFS
|
class << GridFS
|
||||||
def version
|
def version
|
||||||
@ -85,8 +85,8 @@
|
|||||||
|
|
||||||
to_delegate.each do |method|
|
to_delegate.each do |method|
|
||||||
class_eval <<-__
|
class_eval <<-__
|
||||||
def GridFS.#{ method }(*args, &block)
|
def self.#{ method }(*args, &block)
|
||||||
::GridFS::Fs::#{ method }(*args, &block)
|
::Mongoid::GridFS::Fs::#{ method }(*args, &block)
|
||||||
end
|
end
|
||||||
__
|
__
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user