Skip to content

Instantly share code, notes, and snippets.

@kineticac
Last active December 14, 2015 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kineticac/5041125 to your computer and use it in GitHub Desktop.
Save kineticac/5041125 to your computer and use it in GitHub Desktop.
Extending an ActiveSupport::Concern in our model. The extension has the Sunspot searchable block.
class Athlete < ActiveRecord::Base
include Extensions::AthleteSearch
# rest of athlete model code
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment