Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error: "alize does not work with default scope" #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nazarok
Copy link

@nazarok nazarok commented Nov 1, 2014

This pull request added configuration options to disable default_scope.

Mongoid::Alize.setup do |config|
config.unscoped = true
end

@joshed-io
Copy link
Owner

Thanks @web-patriot!

I pulled down the PR and I'm getting some failing tests when I run bundle exec rake spec. Here's an example:

  42) Mongoid::Alize without specifying fields for non-polymorphic should denormalize all non-internal fields
     Failure/Error: @person.save!
     NoMethodError:
       undefined method `scoped' for #<Head:0x007ffc0d2113d8>
     # ./lib/mongoid/alize/to_callback.rb:22:in `_denormalize_to_head'
     # (eval):1:in `block in make_lambda'
     # ./spec/mongoid_alize_spec.rb:238:in `block (4 levels) in <top (required)>'

Can you check and see if you're getting any failures?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants