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

NameError: uninitialized constant Arel::Relation #144

Closed
sunaku opened this issue Sep 28, 2012 · 2 comments
Closed

NameError: uninitialized constant Arel::Relation #144

sunaku opened this issue Sep 28, 2012 · 2 comments

Comments

@sunaku
Copy link

sunaku commented Sep 28, 2012

Hello,

I'm using Arel from Git (since my app needs patches that have been merged into master) with Rails 3.2.8 and I'm getting a NameError: uninitialized constant Arel::Relation error when running my functional tests. Here's my setup:

$ rails -v
Rails 3.2.8
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
$ bundle list | grep arel
  * arel (3.0.2.20120819075748 de7e7c8)

Currently, I'm using this hack in my test_helper to work around the issue:

# XXX: this fixes NameError: uninitialized constant Arel::Relation
# http://intertwingly.net/blog/2012/03/28/Keeping-it-on-the-Rails
module Arel::Relation; end

Thanks for your consideration.

@sunaku
Copy link
Author

sunaku commented Oct 10, 2012

BTW @tenderlove is this incompatibilty with Rails 3.2.8 the reason why a new Arel gem release hasn't been made? Could we move the incompatible changes out of master (to a different branch) and then release the other (compatible) patches? :shipit:

@tenderlove
Copy link
Member

The master branch should be used with edge rails. Please only use the release gems. If there is something on master that needs to be backported to stable and released, please file a new ticket. Thanks.

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

No branches or pull requests

2 participants