Permalink
Browse files

remove old code related to mongoid bug

looks like this mongoid bug was fixed here:
mongoid/mongoid@2b74079
  • Loading branch information...
nashby committed Jun 6, 2012
1 parent e59f511 commit 8e5a029c734437cd3d855e2297195ce984c63a67
Showing with 0 additions and 18 deletions.
  1. +0 −2 config/initializers/overrides.rb
  2. +0 −16 lib/overrides/mongoid/relations/builder.rb
@@ -1,4 +1,2 @@
-require Rails.root.join('lib/overrides/mongoid/relations/builder')
require Rails.root.join('lib/overrides/devise/failure_app')
require Rails.root.join('lib/overrides/hoptoad_notifier/hoptoad_notifier')
-
@@ -1,16 +0,0 @@
-# ruby-fogbugz requires crack. crack adds the attributes method to strings,
-# thus breaking the relations of Mongoid.
-# Tests reside in a separate fork of mongoid:
-# https://github.com/mhs/mongoid/commit/e5b2b1346c73a2935c606317314b6ded07260429#diff-1
-module Mongoid
- module Relations
- class Builder
- def query?
- return true unless object.respond_to?(:to_a)
- obj = object.to_a.first
- !obj.is_a?(Mongoid::Document) && !obj.nil?
- end
- end
- end
-end
-

0 comments on commit 8e5a029

Please sign in to comment.