Class: Guacamole::Generators::CollectionGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/rails/generators/guacamole/collection/collection_generator.rb

Direct Known Subclasses

Rails::Generators::CollectionGenerator

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#create_collection_fileObject



12
13
14
# File 'lib/rails/generators/guacamole/collection/collection_generator.rb', line 12

def create_collection_file
  template 'collection.rb.tt', File.join('app/collections', class_path, "#{file_name}_collection.rb")
end