Class: Collectively::CollectionGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/rails/generators/collectively/collection_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_collection_fileObject



10
11
12
# File 'lib/rails/generators/collectively/collection_generator.rb', line 10

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