Class: Guacamole::Generators::CollectionGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- Guacamole::Generators::CollectionGenerator
show all
- Defined in:
- lib/rails/generators/guacamole/collection/collection_generator.rb
Instance Method Summary
collapse
Methods inherited from Base
source_root
Instance Method Details
#create_collection_file ⇒ Object
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
|