Class: RedisRecordGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_repos_fileObject



2
3
4
5
6
7
8
# File 'lib/generators/repos.rb', line 2

def create_repos_file
  create_file "app/repos/application_repo.rb",
  "class ApplicationRepo\n
     include Repositor::ActiveRecord\n
   end
  "
end