Class: IndexedSearch::ApplicationIndexerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/indexed_search/application_indexer/application_indexer_generator.rb

Overview

Generate an application indexer

Instance Method Summary collapse

Instance Method Details

#copy_application_indexer_fileObject

Copy the template file into place



10
11
12
# File 'lib/generators/indexed_search/application_indexer/application_indexer_generator.rb', line 10

def copy_application_indexer_file
  copy_file "application_indexer.rb", "app/indexers/application_indexer.rb"
end