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

Plexus causes a SystemStackError on Rails 3.2.6 #2

Open
wingrunr21 opened this issue Jul 3, 2012 · 1 comment
Open

Plexus causes a SystemStackError on Rails 3.2.6 #2

wingrunr21 opened this issue Jul 3, 2012 · 1 comment

Comments

@wingrunr21
Copy link

When Plexus is required in a Rails 3.2.6 application, ActiveRecord finds produce the following output:

SystemStackError: stack level too deep
from /Users/wingrunr21/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/pry-0.9.9.6/lib/pry/pry_instance.rb:249

To reproduce:

rails new testapp
cd testapp
echo "gem 'plexus'" >> Gemfile
bundle install
rails g scaffold User first_name:string last_name:string
rake db:migrate
rails console

User.all
@wingrunr21
Copy link
Author

The issue is specifically in ext.rb#L38

is_a? is being thrown into an infinite loop. klass in every instance is an ActiveRecord::Relation.

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

No branches or pull requests

1 participant