Created
August 11, 2015 08:49
-
-
Save chrisyeung1121/6ba92a2ddbe620f1cf58 to your computer and use it in GitHub Desktop.
Algolia nested attributes error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car < ActiveRecord::Base | |
belongs_to :owner, class_name: 'FormUser', foreign_key: 'user_id' | |
include AlgoliaSearch | |
algoliasearch id: :permalink do | |
attribute :owner do | |
{ uid: owner.uid } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment