Navigation Menu

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

Support for custom ':foreign_key' option in the 'belongs_to' used with 'index ..., :foreign=>true' was added. #28

Merged
merged 3 commits into from Jun 20, 2013

Conversation

virtax
Copy link
Contributor

@virtax virtax commented Jun 20, 2013

For example:

class Book < ActiveRecord::Base
belongs_to :second_publisher, :foreign_key => 'second_publisher_id', :class_name => 'Publisher'
index :second_publisher_id, :foreign => true
end

Dmitriy Partsyrniy added 3 commits June 18, 2013 19:15
…h 'index ..., :foreign=>true' was added.

For example:

class Book < ActiveRecord::Base
  belongs_to :second_publisher, :foreign_key => 'second_publisher_id', :class_name => 'Publisher'
  index :second_publisher_id, :foreign => true
end
…with 'index ..., :foreign=>true' was added.

For example:

class Book < ActiveRecord::Base
  belongs_to :second_publisher, :foreign_key => 'second_publisher_id', :class_name => 'Publisher'
  index :second_publisher_id, :foreign => true
end

2. Update source of Foreigner gem to the official gem source
3. Fix compatibility issue with acts_as_votable gem
DAddYE added a commit that referenced this pull request Jun 20, 2013
Support for custom ':foreign_key' option in the 'belongs_to' used with 'index ..., :foreign=>true' was added.
@DAddYE DAddYE merged commit 9601e17 into DAddYE:master Jun 20, 2013
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.

None yet

2 participants