lib/mongo_grid.rb in mongo_grid-0.2.5 vs lib/mongo_grid.rb in mongo_grid-0.2.6
- old
+ new
@@ -1,8 +1,12 @@
-require "mongo_grid/version"
require 'zbox'
+require 'mongo_grid/version'
+#Dir[File.join(File.dirname(__FILE__), 'mongo_grid', '*.rb')].each do |extension|
+# require extension
+#end
+
module ::MongoGrid
attr_accessor :db_name, :db_url
extend self
def configure
@@ -53,8 +57,10 @@
file_size = fsize(length)
hsh = {:grid_id=>gid.to_s,:filename=>fname,
:content_type=>content_type,:file_size=>file_size}
end
+end
-end
+require 'mongo_grid/mongoid'
+require 'mongo_grid/action_base'