Support for custom ':foreign_key' option in the 'belongs_to' used 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
Merge branch 'master' of https://github.com/virtax/mini_record
1. Support for custom ':foreign_key' option in the 'belongs_to' used 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
Merge pull request #28 from virtax/master

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