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

should_belong_to generates DEPRECATION WARNING (Rails 3.1) #26

Open
ultrasaurus opened this issue Jul 23, 2011 · 8 comments
Open

should_belong_to generates DEPRECATION WARNING (Rails 3.1) #26

ultrasaurus opened this issue Jul 23, 2011 · 8 comments
Labels

Comments

@ultrasaurus
Copy link

should_belong_to :whatever
in a spec for a Rails 3.1 app, causes this warning:

DEPRECATION WARNING: primary_key_name is deprecated and will be removed from Rails 3.2 (use foreign_key instead). (called from reflection_foreign_key at .../gems/remarkable_activerecord-4.0.0.alpha4/lib/remarkable/active_record/matchers/association_matcher.rb:97)

Thanks!

@structuralartistry
Copy link

Hi, if you use: gem 'shoulda', '>= 3.0.0.beta', the deprecation error goes away.

@saks
Copy link

saks commented Oct 4, 2011

+1 for this problem. It's really hard to read rspec output.

@papricek
Copy link

+1

@plribeiro3000
Copy link

This bug was already fixed and is on master. You still have the problem because the gem wasnt been regenerated since version 4.0.0.alpha4. Try to download the version from this repo and use it instead of the one from rubygems.

@jcf
Copy link

jcf commented Jan 22, 2012

Remarkable does not work with Rails 3.2 because of this issue. Can we get a release of the change to reflection_foreign_key please?

@mkuklis
Copy link

mkuklis commented Jan 24, 2012

+1

2 similar comments
@dzaporozhets
Copy link

+1

@sbackus
Copy link

sbackus commented Aug 13, 2013

+1

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

No branches or pull requests

9 participants