Skip to content

Commit

Permalink
no need to stub classes anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
tganzarolli committed Sep 3, 2012
1 parent 94f8cd1 commit e63934b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/delayed_job_web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@
require 'active_record'
OrmStatusControl::active_record = true
rescue LoadError => e
module ActiveRecord
class Base
end
end
end
end
if not OrmStatusControl::mongoid_loaded?
begin
require 'mongoid'
OrmStatusControl::mongoid = true
rescue LoadError => e
module Mongoid
class Criteria < Array
end
end
end
end
raise LoadError.new 'No orm/odm defined. Use ActiveRecord or Mongoid' unless OrmStatusControl::has_orm?
Expand Down

0 comments on commit e63934b

Please sign in to comment.