class MyModel < ActiveRecord::Base

  if ENV['ALGOLIASEARCH_APPLICATION_ID']
    include AlgoliaSearch

    algoliasearch auto_index: false, auto_remove: false do
    end
  end

end

class MyModel < ActiveRecord::Base

  algoliasearch auto_index: false, auto_remove: false do
  end

end

Revert "I need to path this helper to not fail if the env variables are missing"
Revert "I need to path this helper to not fail if the env variables are missing"

This reverts commit 6b7fe0dcc7be57a0bd9469f518ea82c4201b6baa.
