Permalink
Browse files

Removed autoloading. This makes Plucky thread safe. It also makes the…

… code uglier. Apologies.
  • Loading branch information...
1 parent 4bb3f69 commit a828ab7c198a2f60ca8b469e782e7cd2a4d13345 @sgonyea sgonyea committed Jul 19, 2011
Showing with 11 additions and 10 deletions.
  1. +5 −10 lib/plucky.rb
  2. +6 −0 lib/plucky/pagination.rb
View
@@ -2,18 +2,13 @@
require 'set'
require 'mongo'
require 'plucky/extensions'
+require 'plucky/criteria_hash'
+require 'plucky/options_hash'
+require 'plucky/query'
+require 'plucky/pagination'
+require 'plucky/version'
module Plucky
- autoload :CriteriaHash, 'plucky/criteria_hash'
- autoload :OptionsHash, 'plucky/options_hash'
- autoload :Query, 'plucky/query'
- autoload :Version, 'plucky/version'
-
- module Pagination
- autoload :Decorator, 'plucky/pagination/decorator'
- autoload :Paginator, 'plucky/pagination/paginator'
- end
-
# Array of methods that actually perform queries
Methods = [
:where, :filter, :limit, :skip, :offset, :sort, :order,
@@ -0,0 +1,6 @@
+require 'plucky/pagination/decorator'
+require 'plucky/pagination/paginator'
+
+module Plucky
+ module Pagination; end
+end

0 comments on commit a828ab7

Please sign in to comment.