Class: Collectively::CollectionGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Collectively::CollectionGenerator
- Defined in:
- lib/rails/generators/collectively/collection_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_collection_file ⇒ Object
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 |