Skip to content

Commit

Permalink
change parentize define after upgrade mongoid to 2.0.0.rc.7
Browse files Browse the repository at this point in the history
  • Loading branch information
saberma committed Mar 14, 2011
1 parent 13162f0 commit 9221217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile
@@ -1,10 +1,10 @@
source :gemcutter

gem 'mongoid', '>=2.0.0.beta.14'
gem 'mongoid', '>=2.0.0.rc.7'
gem "mongoid_adjust", ">= 0.1.1"
gem 'bson_ext', '>=1.0.1'

group :test do
gem 'rspec', '>= 2.0.0.beta.15'
gem 'mocha'
end
end
4 changes: 2 additions & 2 deletions lib/mongoid/embedded_helper.rb
Expand Up @@ -6,8 +6,8 @@ def self.included(model)
model.class_eval do

alias_method :old_parentize, :parentize
def parentize(object, association_name)
old_parentize object, association_name
def parentize(document)
old_parentize document
send(:after_parentize) if respond_to?(:after_parentize)
# run_callbacks(:after_parentize)
end
Expand Down

0 comments on commit 9221217

Please sign in to comment.