We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The foreign_key method returns an incorrect column name when a corresponding belongs_to uses a nonstandard foreign key name.
An example:
class User < ActiveRecord::Base has_many :posts, :inverse_of => author end class Post < ActiveRecord::Base belongs_to :author, :inverse_of => :posts, :class_name => :User end describe User do it { should have_many(:posts) } end
The text was updated successfully, but these errors were encountered:
Can you post the error? Did you come up with a workaround for this?
Sorry, something went wrong.
This was an accidental duplicate of #67. Closing
No branches or pull requests
The foreign_key method returns an incorrect column name when a corresponding belongs_to uses a nonstandard foreign key name.
An example:
The text was updated successfully, but these errors were encountered: