Created
February 26, 2013 19:02
-
-
Save kineticac/5041093 to your computer and use it in GitHub Desktop.
Sunspot searchable block moved to extension module using ActiveSupport::Concern
This file contains 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
#extend this from Athlete model | |
module Extensions::AthleteSearch | |
extend ActiveSupport::Concern | |
included do | |
searchable :auto_index => true, :auto_remove => true do | |
# all your searchable code | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment